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 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.