October 2017
Intermediate to advanced
440 pages
11h 47m
English
The Error variable is a collection (ArrayList) of handled and unhandled errors raised in the PowerShell session.
The collection can be cleared using:
$Error.Clear()
The most recent error is first in the list:
$Error[0]
Errors will be added to the collection except when the ErrorAction is set to Ignore.
The ErrorVariable parameter can be used to name a variable that should be used as well as Error for a specific ...
Read now
Unlock full access