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