Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Find Information About ErrorActionPreference

$
0
0

Summary: Find information, beyond the basics, for the Windows PowerShell variable ErrorActionPreference.

Hey, Scripting Guy! Question How can I use Windows PowerShell to see information, beyond only the value, for the variable ErrorActionPreference?

Hey, Scripting Guy! Answer Use the Get-Variable cmdlet and pipe the results to the Format-List cmdlet:

Get-Variable ErrorActionPreference | Format-List *

Note  When you use the *variable cmdlets, you do not specify the initial dollar sign.
So it is represented as ErrorActionPreference not $ErrorActionPreference.


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>