scripting-games-2013-2

Learning Points From PowerShell Scripting Games Event #4

Event 4 for the PowerShell Scripting Games 2013 has closed, here are a few learning points I picked up on from entries submitted. 1) Random AD Users The first part of this event is to work with 20 randomly selected users from Active Directory. Initial thoughts might be that this is pretty straightforward. If you use the Get-ADUser cmdlet from the AD module then you could do something like this:

Learning Points From PowerShell Scripting Games Event #3

Event 3 for the PowerShell Scripting Games 2013 has closed, here are a few learning points I picked up on from entries submitted. 1) Filter to the left Some cmdlets in PowerShell have their own filtering capabilities, which can make queries of large data sets more efficient. However, not all cmdlets do have this capability and you will need to pipe the results to Where-Object instead. It’s always worth checking the help and examples for a cmdlet first to see the best way to filter and if it has an option to do so then use it!

Learning Points From PowerShell Scripting Games Event #2

Event 2 for the PowerShell Scripting Games 2013 has closed, here are a few learning points I picked up on from entries submitted. 1) Win32_Processor This event is a bit of a sneaky one and if you haven’t been affected by the issue before then you may not know it. The particular issue I am referring to here is that “The number of physical hyperthreading-enabled processors or the number of physical multicore processors is incorrectly reported in Windows Server 2003”.

Learning Points From PowerShell Scripting Games Event #1

Event 1 for the PowerShell Scripting Games 2013 has closed, here are a few learning points I picked up on from entries submitted. 1) Get-ChildItem -Recurse When you need to retrieve files from paths with subfolders the Recurse parameter of Get-ChildItem makes this really easy. For instance Get-ChildItem -Path C:\\Application\\Log -Filter \*.log -Recurse is a really easy way to return everything below C:\Application\Log. In the specific instance of this event, this is OK because you only have three subfolders, but potentially there could be a lot more and some of them might not be relevant.

PowerShell Scripting Games 2013

Looking for a good way to start learning PowerShell or fancy testing yourself with some more advanced problems to solve? It’s time again for the annual Scripting Games and this year the PowerShell community are running the event, ably supported by the Microsoft Scripting Guy. There are separate Beginner and Advanced tracks and plenty of prizes to be won in each event. I’ll be helping out with the other community judges to highlight some of the entries.