PowerTip: Find Status of PowerShell Preference Variables

PowerTip: Find Status of PowerShell Preference Variables

  • Comments 2
  • Likes

Summary:  Easily find the status of Windows PowerShell Preference variables.

Hey, Scripting Guy! Question How can I see the preference settings that I can change with Windows PowerShell?

Hey, Scripting Guy! Answer Look at variables that contain the word Preference  in their name by using the Get-ChildItem 
          and looking at the Variable drive:

Get-ChildItem variable:*preference

Note  To see all of the Windows PowerShell Preference variables, see about_Preference_Variables.
Many of the Preference variables are not present on the Variable drive unless you change their initial values.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • I love windows server powershell I never learn in before but I want to