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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.