July 30th, 2014

PowerTip: Check Status of PowerShell Preference Variables

Doctor Scripto
Scripter

Summary: Learn to easily check the value assignments of Windows PowerShell preference variables.

Hey, Scripting Guy! Question How can I use Windows PowerShell to quickly check the value of Windows PowerShell preference variables?

Hey, Scripting Guy! Answer You can use the Windows PowerShell variable drive and look for variables that end with
           the word preferenceIn this example, dir is an alias for Get-Content:

dir variable:*preference 

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.

Feedback