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 6'

  • Beginner6_2011.ps1 by Neil Clinch 18 Apr 2011 04:05 AM UTC
    by 2 users

    Beginner Event 6

    Parse Windows Update Log (%systemroot%\Windows\WindowsUpdate.log) looking for Fatal Errors

  • Get-WindowsUpdateErrors.ps1 by Frank ERBLAND 18 Apr 2011 12:38 AM UTC
    by 2 users

    Beginner Event 6

    This script reports the Windows Update service fatal errors. By default it looks in the file %systemroot%\WindowsUpdate.log for lines matching the regular expression "FATAL: ". But you can specify alternate file name (if it changes in the future...) or matching regular expression (for warnings for example). This script simply relies on Select-String cmdlet...

  • Beginner6_2011 by Tia 17 Apr 2011 11:33 PM UTC
    by 2 users

    Beginner Event 6

    This scripts find Fatal Errors in WindowsUpdate.log file.

  • Beginner6_2011 by Tomislav 17 Apr 2011 09:18 PM UTC
    by 2 users

    Beginner Event 6
    1 Comments

  • parse-log.ps1 by Tony Richards 17 Apr 2011 09:07 PM UTC
    by 2 users

    Beginner Event 6

    This script runs against the local computer and will parse a log file. I create a grep alias, the guys on the PowerShell blog say they should have created one.

  • Get Fatal Errors by bmorrison 17 Apr 2011 05:25 PM UTC
    by 2 users

    Beginner Event 6
    1 Comments

    Search based off of keyword "fatal" in the WindowsUpdate.log file

  • Get-UpdatelogFatals by Jay Morris - Moreski 17 Apr 2011 01:48 PM UTC
    by 2 users

    Beginner Event 6
    1 Comments

    My one-liner submission to Beginner Event 6... I was a little reluctant to submit this script as it looks so simple that I have spent ages looking at it to find what is missing... When it comes down to it, it does what is asked for. :-)

  • Beginner6_2011_andre.gibel.ps1 by Andre Gibel - CH 17 Apr 2011 10:47 AM UTC
    by 2 users

    Beginner Event 6
    1 Comments

    Beginner6_2011_andre.gibel.ps1

  • SG2011BE6V1.ps1 by Winfried Schoierer 17 Apr 2011 09:49 AM UTC
    by 2 users

    Beginner Event 6

    #Beginner Event 6 #as Ed Wilson stated it should be short and aliases should be used:

  • ESORT by toumi walid 17 Apr 2011 08:06 AM UTC
    by 2 users

    Beginner Event 6

    advanced sort function

  • beginner 6 by Joe D. 17 Apr 2011 07:57 AM UTC
    by 2 users

    Beginner Event 6

  • 2011sg_b6.ps1 by Dan 17 Apr 2011 04:38 AM UTC
    by 2 users

    Beginner Event 6
    1 Comments

  • Advanced_7.ps1 by Justin Stokes 17 Apr 2011 01:36 AM UTC
    by 3 users

    Beginner Event 6
    3 Comments

    This Script can be used to correlate a users twitter name and Real Name from a web page. It can perform this given a SQL Saturday URl, location of saved PageSource from a SQL Saturday page or a CSV file that has already been parsed from a page. The script can also be utalized to save results to a CSV file or simply to retrieve source code from a website.

  • Event6.ps1 by Tony McGee 17 Apr 2011 01:02 AM UTC
    by 2 users

    Beginner Event 6

    Retrieve fatal errors from the Windows Update log file: C:\Windows\WindowsUpdate.log

  • Get-UpdateErrors.ps1 by Daniel Cruz 17 Apr 2011 12:21 AM UTC
    by 2 users

    Beginner Event 6

    Returns strings from the WindowsUpdate.log file that contain Fatal errors.

  • BeginnerSix.ps1 by Charlie Jacobson 16 Apr 2011 07:03 PM UTC
    by 2 users

    Beginner Event 6

    Simple script for event 6, opens the log file, looks for any line with the string "FATAL:" and then displays it In the comments are two alternate ways of doing the same thing

  • ParseUpdateLog by Vincent Van Hecke 16 Apr 2011 01:35 PM UTC
    by 2 users

    Beginner Event 6
    1 Comments

    Parse the windowsupdate log file for fatal errors

  • Beginner_06_2011.ps1 by David Temple 16 Apr 2011 05:05 AM UTC
    by 2 users

    Beginner Event 6
    1 Comments

    The Script will check for the existence of the word "failed" located in the WindowsUpdate.Log file and echoes the information to the host. Below is the shortest I could get the one liner. GC is the alias for "Get-Content" which I pipe over to "Select-String" which does not have an alias. "-Patt" is the shortest switch parameter I could use without confusing folks with the "-Path" Switch Parameter. I did test without the "-Pattern" Switch Parameter which the "Select-String" was intelligent enough to figure out from the information I was passing to it that it was not a path statement but a pattern, however I thought it would be best practice to include the Switch Parameter.

  • beginner6_2011.ps1 by Dave Maldonado 16 Apr 2011 03:27 AM UTC
    by 2 users

    Beginner Event 6
    2 Comments

    One-liner that parses the WindowsUpdate.log file and looks for fatal errors.

  • beg06.ps1 by Francis D 16 Apr 2011 03:12 AM UTC
    by 2 users

    Beginner Event 6

    Get Windows Update failures

  • Beginner 6 by Bill Ehardt 16 Apr 2011 01:32 AM UTC
    by 2 users

    Beginner Event 6
    1 Comments

    Looks for any string "FATAL" in windows update log. Please note that in the screenshot shown, there is an Warning that says "not fatal" so I added case sensitivity.

  • C6 by Dan 16 Apr 2011 12:41 AM UTC
    by 2 users

    Beginner Event 6
    1 Comments

    Search the Windows update log for fatal events

  • B_Event_6.ps1 by Eric Pankowski 16 Apr 2011 12:29 AM UTC
    by 2 users

    Beginner Event 6
    1 Comments

    Parse the WindowsUpdate.log looking for Fatal errors which may be causing updates not to run properly.

  • GetFatalWindowsUpdateErrors by Mike Hansford 16 Apr 2011 12:26 AM UTC
    by 2 users

    Beginner Event 6
    1 Comments

    Gets any lines containing the word FATAL from $env:windir\windowsupdate.log and writes to the console

  • get-friendlyandtwittername_fromurl by mjolinor 16 Apr 2011 12:19 AM UTC
    by 2 users

    Beginner Event 6

    Gets the twitter names from a given url along with their associated friendly names, and returns an array of PS objects with FriendlName and TwitterName properties. Script uses 2 fuctions, get-webpagedata to retrieve the data from the web page, and new-psobjectfrommatches that takes the data as pipeline input and creates the objects, using a regular expression and a list of property names provided as parameters. Both functions are re-used from Advanced Event 6, and the new-psobjectfrommatches can be used to create ps objects from any [string[]] input that can be parsed using a capturing regular expression. Write-debug statements are provided to show how the data is being matched and captured, and how the property names are being applied to the matches.