Debugging PowerShell Code Guidance

If you get stuck with debugging your PowerShell scripts, there is some excellent guidance available on TechNet here.
The link to the 7 part series mentioned in the article no longer seems to work, but there is enough here to get you going. I’m particularly a fan of Write-Verbose, because it allows you to add trace code for what you expect to happen and what did actually happen. As is often the issue, the two don’t always align …

Categories: Powershell

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: