The Big Book of PowerShell Gotchas
Format right
Where is the ____ Command? I’ve Installed the Latest Version of PowerShell and Can’t Find it!
PowerShell.exe isn’t PowerShell
Accumulating Output in a Function
ForEach vs ForEach vs ForEach
Tab Completion
-Contains isn’t -Like
You Can’t Have What You Don’t Have
-Filter Values Diversity
Not Everything Produces Output
One HTML Page at a Time, Please
[Bloody] {Awful} (Punctuation)
Don’t+Concatenate+Strings
$ isn’t Part of the Variable Name
Use the Pipeline, not an Array
Backtick, Grave Accent, Escape
A Crowd isn’t an Individual
These aren’t Your Father’s Commands
Properties vs. Values
Remote Variables
New-Object PSObject vs. PSCustomObject
- New-Object PSObject in v1.0
- New-Object in PS 2.0
- PSCustomObject in PowerShell v3.0
Running Something as the “Currently Logged-in User”
Commands that Need a User Profile May Fail When Run Remotely
Writing to SQL Server
Getting Folder Sizes