PowerShell for Windows Admins:

May, 2013


May 26, 2013  3:32 AM

Scripting Games-Voting



Posted by: Richard Siddaway
Scripting Games

Still time to vote on event 4 – the numbers of votes are falling off slightly – especially in the Advanced events. This is your opportunity to observe what other people are doing, comment and very possibly learn.

May 24, 2013  2:07 PM

PowerShell Deep Dive–MEAP now complete



Posted by: Richard Siddaway
Books, PowerShell 3

The final chapters of PowerShell Deep Dive have been added to the MEAP http://www.manning.com/hicks/ Enjoy


May 24, 2013  2:00 PM

AD Month of Lunches–Chapter 11 in MEAP



Posted by: Richard Siddaway
Active Directory, Books, PowerShell

The MEAP for AD Management in a Month of Lunches has been extended with the inclusion of chapter 11 – Creating Domain Controllers. www.manning.com/siddaway3 Enjoy


May 21, 2013  3:49 PM

Scripting Games – Filter early again



Posted by: Richard Siddaway
Active Directory, PowerShell, Scripting Games

Grading the scripts in Event 4 and the one thing that jumps out is the amount of unnecessary data being carried through the scripts You were asked for 7 properties off 20 random users Get-ADUser has a –properties parameter. USE it to restrict the properties you return. You don’t NEED all...


May 20, 2013  3:50 PM

Scripting Games – Win32_LogicalDisk or Win32_Volume



Posted by: Richard Siddaway
PowerShell, Scripting Games, WMI

I have heard some discussions recently regarding whether Win32_LogicalDisk or Win32_Volume should be used in the answer to event 3 in the Scripting Games. The problem requires you pull the drive letter, drive size and freespace for local disks on the server. Notice the emphasis – that will be...


May 16, 2013  12:56 PM

Scripting Games-Subfunctions



Posted by: Richard Siddaway
PowerShell, Scripting Games

One of the principles of writing scripts (or any code) is the KISS principle – Keep It Simple Scripter. That principle is being abused al lot in event 3 I am seeing numerous entries that define an advanced function as the solution and then inside the PROCESS block define one or more...


May 14, 2013  1:22 PM

Scripting Games–filtering on remote server



Posted by: Richard Siddaway
PowerShell, Scripting Games, WMI

In event 3 you have to get information on hard disk capacity. I’ve only looked at the first couple of dozen scripts but seen this too many times Get-WmiObject -Class Win32_LogicalDisk | where DriveType -eq 3 or if you prefer the version 2 way Get-WmiObject -Class Win32_LogicalDisk |...


May 12, 2013  3:20 PM

Scripting games–ErrorActionPreference



Posted by: Richard Siddaway
PowerShell, Scripting Games

I’ve seen a lot of this type of thing in events 1 and 2 $ErrorPref = $ErrorActionPreference $ErrorActionPreference = "Stop" Don’t The default for $ErrorActionPreference is Continue. This means that the error message is shown and the cmdlet attempts to continue. The possible values...


May 9, 2013  1:43 PM

Scripting Games–making work



Posted by: Richard Siddaway
PowerShell, Scripting Games

I saw this in one of the submissions: $Properties = @{} $Properties['Computer'] = $SystemInfo.__SERVER $Properties['OperatingSystem'] = "$($OSInfo.Caption) - $($OSInfo.CSDVersion)" $Properties['PhysicalMemory'] = $SystemInfo.TotalPhysicalMemory My immediate thought was the entrant...


May 8, 2013  1:08 PM

AD MoL Chapter 10 MEAP



Posted by: Richard Siddaway
Active Directory, Books, PowerShell 3

Chapter 10 of AD Management in a Month of Lunches is now available. http://www.manning.com/siddaway3/ The chapter covers Fine Grained Password Policies


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: