
-WhatIf is not a dry run for everything
-WhatIf only previews commands that support it. The rest of your script runs for real.
· 2 min read
tag: powershell
Every post with this tag, newest first.

-WhatIf only previews commands that support it. The rest of your script runs for real.
· 2 min read

RemoteSigned stops accidents, not bad scripts. The review still has to happen before you unblock.
· 2 min read

Invoke-Sqlcmd runs whatever T-SQL you hand it. A missing WHERE clause turns "remove one row" into "empty the table".
· 2 min read

Scripts from vendors, forums and RMM libraries get pushed widely and reviewed rarely. A ten-minute routine changes that.
· 2 min read

You meant three web servers. Get-ADComputer -Filter * meant every computer account in Active Directory.
· 2 min read

Most script outages don't start with a bad idea. They start with one parameter nobody looked at twice.
· 2 min read