O'Reilly logo

Windows PowerShell™ 2.0 Best Practices by Ed Wilson

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 13. Handling Errors

When it comes to handling errors in your script, you need to understand how the script will be used. The way that a script will be used is sometimes called the use case scenario, and it describes how the user will interact with the script.

If the use case scenario is simple, the user might not need to do anything more than type the name of the script inside the Windows PowerShell console. A script such as Get-Bios.ps1 can get by without much need for any error handling because there are no inputs to the script. The script is called, it ...

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