Careful with Arrays

Careful with ArraysWith PowerShell you never know whether a cmdlet returns an array or a single object. That’s because PowerShell automatically...

read more

Get Volume IDs (Part 1)

You can query WMI to get a list of your drives volume IDs like so: Get-CimInstance -ClassName Win32_Volume | Select-Object -Property DriveLetter,...

read more

Beware of -match

The -match operator is frequently used in scripts however not everyone seems to understand how it really works. It can be a really dangerous filter...

read more