PowerTip: Find Current PowerShell Error Action Preference

Doctor Scripto

Dr Scripto

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

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment