April 2007
Intermediate to advanced
551 pages
12h 9m
English
Let's suppose that you are running a PowerShell script on a hundred or a thousand machines. On many of the machines, it's likely that the script will run without error. On a subset of the machines you will, unless you are very lucky, get some kind of error. It's just how the real world is—not everything works as you hope it will. The architects of Windows PowerShell recognized that reality, so the PowerShell approach, which is to allow you to work as if errors are expected, reflects the kind of situations that will arise in any large multiuser environment.
PowerShell allows you to use error information in several ways. I discuss errors and how you can handle them in Chapter 17.
Read now
Unlock full access