September 3rd, 2013

PowerTip: Find Current PowerShell Error Action Preference

Doctor Scripto
Scripter

Summary: Learn how to discover your current error action preference in Windows PowerShell.

Hey, Scripting Guy! QuestionHow can I see the current value for my error action preference in Windows PowerShell?

Hey, Scripting Guy! Answer Look at the value of the $ErrorActionPreference variable:

PS C:\> $ErrorActionPreference

Continue

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.