The Big Book of PowerShell Gotchas
Search…
⌃K
ReadMe
About this Book
Format Right
Where is the __ command?
PowerShell.exe isn't PowerShell
Accumulating Output in a Function
ForEach vs ForEach vs ForEach
Tab Complete!
-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
These Aren't Your Father's Commands
A Crowd isn't an Individual
Commands' Default Output Can Lie
Properties vs. Values
Remote Variables
New-Object PSObject vs. PSCustomObject
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
Powered By GitBook

These Aren't Your Father's Commands

Always keep in mind that while PowerShell has things called Dir and Cd, they aren't the old MS-DOS commands. They're simply aliases, or nicknames, to PowerShell commands. That means they have different syntax.
image075.png
You can run help dir (or ask for help on any other alias) to see the actual command name, and its proper syntax.
Previous
Backtick, Grave Accent, Escape
Next
A Crowd isn't an Individual
Last modified 4yr ago
Copy link