Chapter 19. Handling errors

After completing this chapter, you will be able to

Image Handle missing parameters in scripts.

Image Limit the choices available to users of your scripts.

Image Handle missing rights and permissions in scripts.

Image Handle missing WMI providers in scripts.

Use Try...Catch...Finally to catch single and multiple errors in scripts.

When it comes ...

Get Windows PowerShell Step by Step, Third Edition now with O’Reilly online learning.

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