Scripto Bobble-head Games Logo

Welcome to PoshCode and the 2012 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 Judging Criteria, 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.

Submit Your Script View Leaderboards

  • Script: Get-ProcessorCounters.ps1 by Ken Lin 20 Apr 2012 06:57 AM UTC Download Embed code
    by 3 users

    Advanced Event 10 1 comment

    Entry for 2012 PowerShell Scripting Game, Advanced Event 10

  • Script: Get-ProcessorCounterSample by Rich Kusak 20 Apr 2012 06:04 AM UTC Download Embed code
    by 2 users

    Advanced Event 10

    The Get-ProcessorCounterSample function gets 10, 2 second samplings from the processor counter set. The output is saved to a CSV file in the logged on user's documents folder for analysis. This function is intentionally simple, a "one-liner", to fulfill the requirements of the 2012 scripting games.

  • Script: Event10 by Sergey Vorontsov 20 Apr 2012 04:56 AM UTC Download Embed code
    by 2 users

    Advanced Event 10

    Script for Advanced Event 10 of the 2012 Scripting Games

  • Script: Beginner Event 10 by Elmerp 20 Apr 2012 04:32 AM UTC Download Embed code
    by 2 users

    Beginner Event 10

  • Script: One Liner - Beg Event 10 by Adam Funck 20 Apr 2012 03:59 AM UTC Download Embed code
    by 2 users

    Beginner Event 10 3 comments

    Retrieve "counter" statistics from the processor set, and append to a text file in the users "documents" directory

  • Script: B_Event10.ps1 by Shaun Gibbs 20 Apr 2012 03:53 AM UTC Download Embed code
    by 2 users

    Beginner Event 10

    Beginner Event 10--Collect Performance Counter Information

  • Script: Get last event by ICC_jruff 20 Apr 2012 03:49 AM UTC Download Embed code
    by 2 users

    Beginner Event 10 3 comments

    Script gets performance information and outputs to file in Documents special folder

  • Script: Beginner Event 10: Collect Performance Counter Information by CraigJahnke 20 Apr 2012 03:41 AM UTC Download Embed code
    by 2 users

    Beginner Event 10

    use Windows PowerShell to collect the performance counter information. You do not have time to manually choose a bunch of counters, but you want to gather all of the counter information from the processor counter set. You should take three separate readings at five-second intervals. All of the counter information should be appended to a single text file that is named after the server and placed in the Documents special folder.

  • Script: SampleCounterSet by Daniel Cruz 20 Apr 2012 03:25 AM UTC Download Embed code
    by 2 users

    Advanced Event 10 2 comments

    Exports ten samples of the counters in the Processor counter set taken at two second intervals. The results are exported to a CSV file in the logged on user's Documents folder.

  • Script: B-Event10.ps1 by Jhonny Yamaniha 20 Apr 2012 03:09 AM UTC Download Embed code
    by 2 users

    Beginner Event 10

    2012 Scripting Games Beginner Event 10: Collect Performance Counter Information

  • Script: Advanced10-Export-Counter.ps1 by Rohn Edwards 20 Apr 2012 02:49 AM UTC Download Embed code
    by 2 users

    Advanced Event 10

    Entry for Advanced Event 10. To run, simply execute script.

  • Script: ae10 by Francis D 20 Apr 2012 02:47 AM UTC Download Embed code
    by 2 users

    Advanced Event 10

    It was really difficult to make a custom object because I didn't know where "(PHD-CSV" came from. And then Get-Help showed me the way.

  • Script: beginnerten.ps1 by Charlie Jacobson 20 Apr 2012 02:42 AM UTC Download Embed code
    by 2 users

    Beginner Event 10

    one line command for beginner event 10. Will output all processor counters to a text file in my documents

  • Script: GetPerfData.ps1 by Joel Reed @J_lR_d {AZPOSH} 20 Apr 2012 02:31 AM UTC Download Embed code
    by 2 users

    Advanced Event 10

    Gets Processor performance counter data and exports it for analysis to a CSV file.

  • Script: AdvEvent10.ps1 by Sean Brown Houses 20 Apr 2012 02:23 AM UTC Download Embed code
    by 2 users

    Advanced Event 10

    Advanced Event 10

  • Script: 2012 Scripting Games Beginner Event 10: Collect Performance Counter Information by James White 20 Apr 2012 02:04 AM UTC Download Embed code
    by 2 users

    Beginner Event 10

    One-liner to grab the Processor counters 3 times every 5 seconds and send to a single text file

  • Script: B-10-PrefProcessor.ps1 by Michael Moore 20 Apr 2012 01:59 AM UTC Download Embed code
    by 2 users

    Beginner Event 10

    Logs processor performance counter data to a log file.

  • Script: beg_event10.ps1 by Stephen Correia 20 Apr 2012 01:47 AM UTC Download Embed code
    by 2 users

    Beginner Event 10

    collect performance counter information about the CPU.

  • Script: Get-ProcStats.ps1 by Schlauge 20 Apr 2012 01:45 AM UTC Download Embed code
    by 2 users

    Advanced Event 10

    This script will get all the performance counters for the processor. It will sample every 2 seconds for 10 iterations. (20 seconds) IT will then export this information to a CSV file in the users' Documents folder for analysis.

  • Script: Advanced_10.ps1 by Joshua Feierman 20 Apr 2012 01:41 AM UTC Download Embed code
    by 2 users

    Advanced Event 10

    Submission for Advanced 10. Collects ten samples of all processor PerfMon counters for the local machine at two second intervals, then outputs the results into a CSV file in the Documents folder.

  • Script: Get-ProcPerf by Daniel Howe 20 Apr 2012 01:19 AM UTC Download Embed code
    by 2 users

    Advanced Event 10 1 comment

    Gets samples of all processor monitors at a specified intervalon on the local machine and output to a csv. It was hard for me to get this "one-liner", but I was happy I was able to figure out one way of achieving the task in a (long) line. Great challenge!!

  • Script: Advanced_10_StephaneVg.ps1 by Stephanevg 20 Apr 2012 01:12 AM UTC Download Embed code
    by 2 users

    Advanced Event 10 2 comments

    Type .\Advanced_10_StephaneVg.ps1 to launch the script with default parameters. Type get-help .\Advanced_10_StephaneVg.ps1 for help. Type get-help .\Advanced_10_StephaneVg.ps1 for detailed help.

  • Script: Beginner event 10 by Niel Fletcher 20 Apr 2012 12:51 AM UTC Download Embed code
    by 2 users

    Beginner Event 10 2 comments

    Writes the processor preformance data to a text file. The $computer and $Counter variables can be modified to query a remote computer.

  • Script: 2012SG_A10_mjolinor by Rob Campbell 20 Apr 2012 12:47 AM UTC Download Embed code
    by 2 users

    Advanced Event 10 1 comment

    2012 SG A10 Solution. *Requires Version 3 *

  • Script: BeginnerEvent10.ps1 by Marcos Tsuda 20 Apr 2012 12:46 AM UTC Download Embed code
    by 2 users

    Beginner Event 10

    My one-line script to collect performance counter information about CPU