Scripto Bobble-head Games Logo

Welcome to PoshCode and the 2011 Scripting Games!

The Scripting Games are a special event put on by the Microsoft scripting guys. Script submissions, grading, and script archives are hosted by PoshCode.org. You may want to check out the Official Rules, and the Scripting Games Information page for event information and contest details, since this site is purely for submitting your contest entry!

Remember: You will not be able to see other user's scripts until after the deadline for an event has passed, and you will not be able to submit scripts for an event once that event has passed.

Note: If you have any problems logging in, please clear your cookies. If you still have problems, please use the "Contact Us" tab above or post directly on GetSatisfaction.

Searching for Scripts in category 'Beginner Event 5'

  • Get-userinfo by Paul Iddon 15 Apr 2011 07:14 AM UTC
    by 2 users

    Beginner Event 5
    2 Comments

    Script for the beginner event 5 but cant submit. Get-userinfo by Paul Iddon Used Winrm instead of WMI as measure-command timed winrm as being 10 seconds faster. Added a try/catch statement non winrm systems can be accessed

  • Beginner5 by Joe D. 15 Apr 2011 06:47 AM UTC
    by 2 users

    Beginner Event 5

    Added the OS architecture because I thought it was an important part of the version information.

  • Beginner5_2011.ps1 by Albert Fortes 15 Apr 2011 05:37 AM UTC
    by 3 users

    Beginner Event 5
    1 Comments

    Collect Basic Computer Information.

  • beginner5_2011.ps1 by Dave Maldonado 15 Apr 2011 05:31 AM UTC
    by 2 users

    Beginner Event 5
    4 Comments

    Collects the user name, computer name, domain name, and the operating system information from a number of computers. Write the information to an ascii text file. Also displays progress bar as it's running to give an estimated time of completion.

  • Beginner5_2011.ps1 by Neil Clinch 15 Apr 2011 05:26 AM UTC
    by 2 users

    Beginner Event 5

    Collect the user name, computer name, domain name, and the operating system information from a number of computers and write it to a text file. Information is appended to the output text file.

  • Get-ComputerInfo by Daniel Cruz 15 Apr 2011 05:00 AM UTC
    by 2 users

    Beginner Event 5

    Collects the user name, computer name, domain name, and the operating system from a number of computers and saves the output to an ASCII encoded text file.

  • Beginner_05_2011.ps1 by David Temple 15 Apr 2011 04:37 AM UTC
    by 2 users

    Beginner Event 5

    Connects to a List of Computers (if a ListOfComputers.txt file exists) or connects to the Local Computer to collect the user name, computer name, domain name, and the operating system information and logs it to a text file named Basic_Computer_Information.txt

  • begginer5 by Bill Ehardt 15 Apr 2011 04:36 AM UTC
    by 2 users

    Beginner Event 5

    Script to be run locally, will get User, computer name, domain, OS, and when the data was last run. Will output a file with named <computer>.txt

  • Event_5_Beg.ps1 by Mark Dent 15 Apr 2011 04:28 AM UTC
    by 2 users

    Beginner Event 5

    Retrieve username, Domain and computername from the environment variables. Get the operating system name from WMI Class win32_operatingsystem. Out this information to a local file and time stamp it with the date the script was run to create this information.

  • Beginner5_2011 by Srikanth 15 Apr 2011 04:28 AM UTC
    by 2 users

    Beginner Event 5

  • beginner 5 by Chris Seiter 15 Apr 2011 04:27 AM UTC
    by 2 users

    Beginner Event 5
    2 Comments

    get computer info

  • beginner5.ps1 by gmb 15 Apr 2011 03:59 AM UTC
    by 2 users

    Beginner Event 5
    1 Comments

    Beginner event 5. Gets info on selected items and outputs it to a txt file.

  • beg05.ps1 by Francis D 15 Apr 2011 03:43 AM UTC
    by 2 users

    Beginner Event 5
    2 Comments

    Get user information and save to file

  • BE_5.ps1 by Ken 15 Apr 2011 03:20 AM UTC
    by 2 users

    Beginner Event 5
    1 Comments

    Collect Basic Computer Information from input text file

  • Beginner5.ps1 by Sadie Trest 15 Apr 2011 03:19 AM UTC
    by 2 users

    Beginner Event 5
    3 Comments

    This script opens uses a computer name, or reads a file and passes it to a cmdlet. The cmdlet opens attempts to open a session to a comptuer and retrieves environment information and saves the results in a file using a specified filename or a default filename.

  • Get-BasicComputerInfo by Matt_G 15 Apr 2011 03:15 AM UTC
    by 2 users

    Beginner Event 5
    1 Comments

    Get-BasicComputerInfo

  • Advanced9 by John Lan 15 Apr 2011 03:09 AM UTC
    by 2 users

    Beginner Event 5

    Create a log with file name format as "yyyyMMdd_userID.log" under specified location. If no location is specified, it defaults to %userProfilet%\HSGlogs. This script contains a demo section at the bottom therefore it can be run as is. Removing the demo section to make it a pure function.

  • B_Event_5.ps1 by Eric Pankowski 15 Apr 2011 02:56 AM UTC
    by 2 users

    Beginner Event 5
    1 Comments

    Query machine(s) for its computer name, logged on user name, domain, and OS type. Output the results of the query to an ASCII encoded text file.

  • get-systeminfo.ps1 by Tony Richards 15 Apr 2011 01:33 AM UTC
    by 2 users

    Beginner Event 5
    1 Comments

    The script will ping each computer in the array and if the computer is online the script will run several WMI queries and save the results to an ASCII .txt file. If the computers are offline when the script attempts to contact them those results will be stored in a seperate file,dead.txt. When the script is rerun, say the following day, the script deletes the old dead.txt. (I figure administrators are only going to be interested in offline machines the day the script is run)

  • Get-ComputerInfo by Arposh 15 Apr 2011 01:11 AM UTC
    by 2 users

    Beginner Event 5

    Retrieves username, computername, domain, OS, current date and outputs to a location determined via a parameter.

  • Get-ComputerInfo.ps1 by Rob Wiley 15 Apr 2011 12:05 AM UTC
    by 2 users

    Beginner Event 5
    1 Comments

    WMI based script that gathers information about computers from a list in a text file. The information gathered includes Computername, Operating System, Username, Domain and Date the information is gathered. You can optionally specify the output file. Default will write data to GetComputerInfoOutput.txt at your Current Working Directory. The script must be run by a userid that can remotely access WMI on the specified computers.

  • SG2011BE5V01 by Winfried Schoierer 14 Apr 2011 11:37 PM UTC
    by 2 users

    Beginner Event 5
    1 Comments

    This function retrieves defined information about the computer either on the local or a remote computer and saves the information to a file. Reusable code, dot.source it or put it in your profile.

  • Get-SystemInfo by Dave Ackroyd 14 Apr 2011 10:53 PM UTC
    by 2 users

    Beginner Event 5

    Written for Scripting Games 2011 Beginner Event 5 This script almost works appart from outputing a blank file, but the required info is outputed to screen and the text file is ascii as requested. Sorry it isn't complete but I ran out of time to finish.

  • Beginner5 by Jon McCormick 14 Apr 2011 10:43 PM UTC
    by 3 users

    Beginner Event 5
    1 Comments

    Collects information from list of computers and writes to text file

  • Beginner Event 5 by Ygramul 14 Apr 2011 10:41 PM UTC
    by 3 users

    Beginner Event 5
    2 Comments

    Very basic attempt at this task. Includes help. Output path is configurable, but the script cannot gather the information from remote systems.