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

  • Beginner1_2011.ps1 by Jason Stangroome 04 Apr 2011 09:11 AM UTC
    by 6 users

    Beginner Event 1
    3 Comments

  • Get-BuildInformation by Ivan F. 04 Apr 2011 09:22 AM UTC
    by 5 users

    Beginner Event 1
    2 Comments

    Reports whether specified process is a private build

  • CheckPrivateBuild by vbscripter 04 Apr 2011 10:05 AM UTC
    by 4 users

    Beginner Event 1
    1 Comments

    This script checks whether computer runs private build of an application. Script without parameters checks process "notepad.exe" on local computer. Use -ProcessName and -ComputerName parameters to set process and computer name. Run script as administrator if you are not the owner of specified process.

  • Advanced1_2011.ps1 by Jason Stangroome 04 Apr 2011 10:17 AM UTC
    by 6 users

    Advanced Event 1
    3 Comments

  • PowerShell to Identify Private Builds of Software by Michał Gajda 04 Apr 2011 10:28 AM UTC
    by 3 users

    Beginner Event 1

  • Identify-SWBuilds.ps1 by Thomas 04 Apr 2011 11:16 AM UTC
    by 5 users

    Beginner Event 1
    4 Comments

    Function to Check for Private Builds based on the Manufacturerinfo.

  • Beginner event 1 by ScriptingWife 04 Apr 2011 11:19 AM UTC
    by 10 users

    Beginner Event 1
    5 Comments

    my entry for beginner event 1

  • Beginner Event 1: Use PowerShell to Identify Private Builds of Software by Star Chiang 04 Apr 2011 12:17 PM UTC
    by 5 users

    Beginner Event 1
    1 Comments

  • Get-DriverInfo by Kazun 04 Apr 2011 12:35 PM UTC
    by 5 users

    Advanced Event 1
    2 Comments

    Advanced Event 1: Finding Process Module Versions by Using PowerShell

  • Test-PrivateBuild by Richard Lazaro 04 Apr 2011 01:16 PM UTC
    by 3 users

    Beginner Event 1

  • Find-PrivateBuild by Darrin Henshaw 04 Apr 2011 01:40 PM UTC
    by 5 users

    Beginner Event 1
    2 Comments

    Gets the process name, computername and whether the program is a Private Build. Can specify different processes/programs.

  • check-privatebuild by Stephen Croft 04 Apr 2011 02:39 PM UTC
    by 5 users

    Beginner Event 1
    4 Comments

    ################# Check-PrivateBuild ### Script Copyright Stephen Croft ### of ANS Group 2011 ### Written for the 2011 Scripting Games Beginner challange 1 ### ### Instructions; ### check-privatebuild takes four possible paramaters; ### -app "c:\windows\system32\calc.exe" --> Full path of application to check ### -complist computers.txt --> text file containing multiple computer names, each on a single line, to check ### -computer DC01 --> name of remote (or local) computer to check ### -outputcsv --> name of output csv location ### ### please note that if these are not passed the script defaults to checking Notepad on "localhost" with the output saved in %temp%\output.csv ### additionally, specifing both a single computer name and a list file will only return the list file computers. #############################################################

  • Check-Version by John Grenfell 04 Apr 2011 03:25 PM UTC
    by 5 users

    Beginner Event 1
    1 Comments

    My first attempt at "The 2011 Scripting Games Beginner Event 1: Use PowerShell to Identify # Private Builds of Software"

  • Get-PrivateBuildStatus by Daniel Dittenhafer 04 Apr 2011 05:25 PM UTC
    by 4 users

    Beginner Event 1
    3 Comments

    Reuable function implementation to scan one or more computers for a given process name and report the status of the Private Build property.

  • Advanced Event 1: Finding Process Module Versions by Using PowerShel by Star Chiang 04 Apr 2011 05:30 PM UTC
    by 4 users

    Advanced Event 1
    1 Comments

  • Get-ProcessModuleVersion by Boe Prox 04 Apr 2011 06:06 PM UTC
    by 5 users

    Advanced Event 1
    5 Comments

    This advanced function allows for local and remote queries for the process module. Remoting is required for this as using the Get-Process with the -Computername does not allow you to query for the process module. A switch is also available to gather computers from Active Directory as well. If no computername is given, then the local machine is used. I used a tab-delimitted output so data can be written to a CSV file.

  • PSAdvanced1.psm1 by Jason Y. 04 Apr 2011 06:21 PM UTC
    by 4 users

    Advanced Event 1
    4 Comments

    The code below is meant to be loaded as a module. The executing function name is PSAdvanced1. Both a help file as well as on screen prompts are provided.

  • Find-Exploit by Darrin Henshaw 04 Apr 2011 06:53 PM UTC
    by 5 users

    Advanced Event 1
    2 Comments

    Script for Advanced Event 1 of the 2011 Scripting Games. Out of the box without any parameters passed it checks the local PC(via remoting) and returns the Spooler module in use by Notepad. However, the process can be changed by changing the process name in the ScriptBlock of Invoke-Command. If the -Search switch is provided the script is more elaborate. It searches for all hosts within the Active Directory of the machine it's run from, and checks them all for the module in use. Should meet the criteria: 1. By default runs against local computer. 2. Output can be piped using >> to a CSV without issue. 3 Code is reusable by changing the Process we look for. 4. Using Powershell remoting. 5. Bonus is it can search through ADDS and it can accept a switch.

  • GetPrivateBuild.ps1 by Rob D. 04 Apr 2011 07:01 PM UTC
    by 3 users

    Beginner Event 1
    2 Comments

    The script prompts user for a process name, a computer (or list of computers), and credentials with remote access to the sepcified computers. Then the script writes the process name, computer name, and IsPrivateBuilde value of the process for each target computer to the host. PSRemoting must be enabled on the target computers. (Previous submission did not appear to work)

  • AdvancedEvent1 by Nuno Mota 04 Apr 2011 07:03 PM UTC
    by 3 users

    Advanced Event 1
    3 Comments

    Script for the 2011 Scripting Games: Advanced Event 1 - Finding Process Module Versions by Using PowerShell I used the Invoke-Command method for both local/remote machines as this makes the code fully reusable, simpler and fully workable with remote machines.

  • Beginner1_2011.ps1 by sstranger 04 Apr 2011 07:37 PM UTC
    by 4 users

    Beginner Event 1
    2 Comments

    # Date: 04/04/2011 # Beginner Event 1: Use PowerShell to Identify Private Builds of Software # Author: Stefan Stranger # Version: 1.0.0

  • Beginner1_2011_andre.gibel.ps1 by Andre Gibel - CH 04 Apr 2011 07:47 PM UTC
    by 3 users

    Beginner Event 1
    1 Comments

    Beginner-Event-1-Andre Gibel

  • SG2011_Event1_Beg.ps1 by Derek McConnell 04 Apr 2011 07:52 PM UTC
    by 3 users

    Beginner Event 1
    2 Comments

    You are the network administrator for a large multinational company with a Premier Services Contract with the Microsoft Corporation. Because of your contract, you have received a private build of a specific application that has a compatibility issue with your custom application. In preparation for your server upgrade to Service Pack 1 for Windows Server 2008 R2, your boss has asked you to identify which servers are running this private build of the application. For the purposes of this scenario, you can use the notepad.exe process. You should report the computer name, the process name (Notepad) and whether or not Notepad is a private build. You must report the actual computer name and not something generic like “localhost” because this will facilitate logging later. The minimum requirement is code to determine if Notepad is a private build or not. Additional information in the output is not acceptable due to logging requirements. An acceptable output is shown here.

  • Get-PrivateBuildState by Pär Hultman 04 Apr 2011 07:58 PM UTC
    by 3 users

    Beginner Event 1
    1 Comments

    Scripting Games 2011 Beginner Event 1

  • Get-ProcessModule by John Smith 04 Apr 2011 08:20 PM UTC
    by 3 users

    Advanced Event 1
    2 Comments

    A Function that will Poll the specified Module for a specified Process on the local, a single remote, or a list of remote devices, to gather the Module name, Size, File name and File Version. Per Advanced Event 1.