Month: July 2012

Find WMI Classes

Get-WmiObject is a great cmdlet that returns all instances of a WMI class: PS> Get-WmiObject -Class Win32_LogicalDisk All you need to know is the...

read more

Rename PowerShell Scripts

Rename-Item can easily batch-rename large numbers of files, simply by piping file objects into it. Here is a sample that finds all PowerShell script...

read more

Backing Up System State

Let's assume your script needs to change a bunch of system settings. The worst thing that could happen is if your script breaks in the middle of...

read more

Installing MUI-Packs

The current PowerShell V3 Beta requires an English Windows operating system. That's bad news for anyone running Windows 7 Professional or Home...

read more

Jagged Arrays

This may not be for everyone: have a look at how you can create "jagged arrays". Here's a jagged array which really is a nested array:...

read more