O'Reilly logo

Windows PowerShell in Action, Second Edition by Bruce Payette

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. Errors and exceptions

14.1 Error handling
14.2 Dealing with errors that terminate execution
14.3 Debugging with the host APIs
14.4 Capturing session output
14.5 PowerShell and the event log
14.6 Summary

Progress, far from consisting in change, depends on retentiveness. Those who cannot remember the past are condemned to repeat it.

George Santayana, The Life of Reason

It’s always useful to keep in mind that PowerShell isn’t “just” a shell or scripting language. Its primary purpose is to be an automation tool and perform critical management tasks on a server, such as send software updates, inspect log files, or provision user accounts. You need to be sure that either the task is completed properly or the reason for failure ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required