Monthly Archives: February 2008

Advanced PowerShell Event 6

OK over half way through the Games and this one is to calculate the prime numbers between 1 and 200.  Luckily we were given a clue in terms of using the Sieve of Eratosthenes.  Unluckily I had never heard of … Continue reading

Posted in Powershell | Leave a comment

Sudden Death Challenge Event 6

Half way point in the Sudden Death Challenge is past and this time we are back to string handling.  We need to take tHE 3119 wINTER sCRIPTING gAMES! and turn it into The 2008 Winter Scripting Games!  This script will … Continue reading

Posted in Powershell | Leave a comment

Beginners PowerShell Event 5

In this one we had to take an input date and compare it to today.  We then need to calculate the number of days, the number of months and the number of months and days between the two dates. # … Continue reading

Posted in Powershell | Leave a comment

Advanced PowerShell Event 5

I am only commenting on events in the Advanced section and the Sudden Death Challenge as I know I have the points awarded.  It would be rather embarrassing to present a solution and then realise that I had got it … Continue reading

Posted in Powershell | Leave a comment

Beginners PowerShell Event 4

In this one we have to count the characters in the currently executing script –  and you have to retrieve the name of the script dynamically. Official Scripting Guy solution here http://www.microsoft.com/technet/scriptcenter/funzone/games/solutions08/bpssol04.mspx My solution was ## get currently executing script … Continue reading

Posted in Powershell | 3 Comments

Beginners PowerShell Event 3

The challenge here was to take the first line from all of the text files in C:Scripts and copy them into C:tempnewfile.txt . The answer presented by the Scripting Guys is a true one liner showing the strengths of the … Continue reading

Posted in Powershell | Leave a comment

PowerGUI 1.014

Keep any eye open on the PowerGUI site – http://www.powergui.org – the next version of PowerGUI is on the way.  Lots of new goodies for everyone to play with. Lost of new debugging tools in the editor & there are … Continue reading

Posted in Powershell | Leave a comment

Sudden Death Challenge Event 5

On the face of it this one seems straight forward but turned out to be a bit ugly in the end.  We had to find a set of properties from WMI classes such that they started with the letters A-Y.  … Continue reading

Posted in Powershell | Leave a comment

Beginners PowerShell Event 2

In this event we had to read the registry and determine the total number of loaded fonts and how many were True Type fonts.  The True Type fonts had to be listed.  The Scripting Guys solution can be found here … Continue reading

Posted in Powershell | Leave a comment

Beginners PowerShell Event 1

I didn’t enter the Beginners competition this year (or last year come to think of it) but decided I would have a look at the events and come up with my own solutions.  No I’m not going to post solutions … Continue reading

Posted in Powershell | Leave a comment