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

  • 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

  • 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.

  • ShowWhatIsWrongWithWindowsUpdates by kloinerFeigling83 11 Apr 2011 04:40 PM UTC
    by 2 users

    Beginner Event 6
    5 Comments

    shows the lines with FATAL Errors...

  • Write-Temp by Milo 16 Apr 2011 05:10 AM UTC
    by 2 users

    Advanced Event 10
    5 Comments

    The 2011 Scripting Games Advanced Event 10: Use PowerShell to Create a Function to Create Temp Files

  • Remove-ImageEXIF by Milo 20 Apr 2011 04:20 AM UTC
    by 2 users

    Advanced Event 8
    5 Comments

    The 2011 Scripting Games Advanced Event 8: Use PowerShell to Remove Metadata and Resize Images

  • Beginner_08_2011.ps1 by David Temple 20 Apr 2011 05:22 AM UTC
    by 2 users

    Beginner Event 8
    5 Comments

    Finds all files in the Directory provided. The Script will write the following information to a CSV File: Name of the File Found - Name Size of the File Found - File Size in (bytes) When the File was last written to = LastWriteTime After the process finishes it will open the CSV File, provided Excel is installed.

  • 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.

  • 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. #############################################################

  • 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.

  • get-privatebuildinfo.ps1 by andrew morgan 04 Apr 2011 10:02 PM UTC
    by 3 users

    Beginner Event 1
    4 Comments

    Gets the private build information of a running process on a remote machine

  • AdvEvent01 by Robert Robelo 05 Apr 2011 01:42 AM UTC
    by 3 users

    Advanced Event 1
    4 Comments

    One advanced function, Get-ProcessModuleVersion: • completely reusable • has remoting mechanism • emits CSV output (String[]) • complete comment-base help • accepts command-line arguments • accepts piped values: byValue and byPropertyName • advanced function • annotated • shows progress bar on Console • error handling, emits computer name only

  • Find-PrivateBuilds by Andrew Mello 05 Apr 2011 02:28 AM UTC
    by 3 users

    Beginner Event 1
    4 Comments

    Checks if an application is a "Private Build" based on a running process. One or more computer names/addresses can be passed as an array and will be converted to the computer name. Default = "localhost" If a program name is not supplied notepad will be checked.

  • Event 1 by hammer 05 Apr 2011 08:53 AM UTC
    by 3 users

    Beginner Event 1
    4 Comments

    Script to test if notepad is PrivateBuild?

  • Advanced1_2011.psm1 by Alex McFarland 06 Apr 2011 01:10 AM UTC
    by 3 users

    Advanced Event 1
    4 Comments

  • Get-ProcessVersion by Dave Ackroyd 07 Apr 2011 10:07 PM UTC
    by 3 users

    Beginner Event 1
    4 Comments

    Scripting Games 2011 - Event 01 - Beginners # # Run script or add to profile | use the cmdlet Get-ProcessVersion <process>. Displays Process, NameOfComputer, and Boolean value of if it IS a private build or not. # # The program must be running before querying - Future version of this script will have a check to see if the program is running and if not Open it, get the Process ID, then Close again afterward.# Appologies to the Judges for the incomplete nature of this script. I don't currently have the time to work on finishing.

  • Get-DaysRemaining by jrussell97 13 Apr 2011 02:59 PM UTC
    by 2 users

    Beginner Event 7
    4 Comments

    Computes the interval of days between today and the target date. Inserts the interval between the two messages provided and displays the whole message to the console. This can be run in a login script by calling the function and supplying the target date and two halfs of the message.

  • Test-XPUpgrade.ps1 by Matthew Painter 13 Apr 2011 11:54 PM UTC
    by 2 users

    Advanced Event 5
    4 Comments

    Advanced Event 5 of the 2011 Scripting Games uses Windows PowerShell to determine if a computer is upgradable to the Windows 7 operating system.

  • Get-ProcessReport by Milo 14 Apr 2011 07:35 AM UTC
    by 2 users

    Advanced Event 4
    4 Comments

    The 2011 Scripting Games Advanced Event 4: Use PowerShell to Investigate the SvcHost Process

  • BeginnerEvent9.ps1 by Adam Bacon 14 Apr 2011 10:52 PM UTC
    by 3 users

    Beginner Event 9
    4 Comments

    To name a text file with the current day, in Year, Month, Day format. I chose to store this in the user profile directory, I also added the ability to dectect if that file is already there, and if so will prompt the user to enter a new file name, which will then also be stored in the user profile. Added some data to the text file hope the judges have a smile at this one. Also submitting the day this event was released. Peace

  • 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.

  • SG2011_Beginner10 by KSchulte 16 Apr 2011 03:08 PM UTC
    by 2 users

    Beginner Event 10
    4 Comments

    Beginner Event 10 in 2011 Scripting Games uses Windows PowerShell to determine the amoun of time a command takes to complete.

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

    Beginner Event 1
    3 Comments

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

    Advanced Event 1
    3 Comments

  • 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.

  • 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.