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 comment