PowerTip: Find Current PowerShell Error Action Preference

Doctor 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

0 comments

Discussion is closed.

Feedback usabilla icon