Skip to Main Content
Windows PowerShell 3.0 First Steps
book

Windows PowerShell 3.0 First Steps

by Ed Wilson
July 2013
Beginner content levelBeginner
280 pages
7h 7m
English
Microsoft Press
Content preview from Windows PowerShell 3.0 First Steps

Chapter 14. Handling errors

When it comes to handling errors in your script, you need to have an understanding of the intended use of the script. The way that a script will be used is sometimes called the use case scenario. 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 could get by without much need for any error handling. This is because there are no inputs to the script. The script is called, it runs, and it displays information that should always be readily available ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Instant Windows PowerShell Guide

Instant Windows PowerShell Guide

Harshul Patel

Publisher Resources

ISBN: 9780735680999Purchase book