Chapter 13. Testing scripts

If you take the time to write a script, you should take a few additional minutes to test the script. How do you know what to test in the script? For many IT professionals, testing a script is nothing more than running the script and looking for errors. If the script runs without errors, the script is considered to be a good script. As you will learn in this chapter, there is more to testing a script than determining whether it runs without errors. When testing your scripts, it is a best practice to check the basic syntax of the script. ...

Get Windows PowerShell Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.