PowerTip: Easily Find the PowerShell 3.0 Preference Variables

PowerTip: Easily Find the PowerShell 3.0 Preference Variables

  • Comments 5
  • Likes

Summary:  Use the Get-Help cmdlet to find the Windows PowerShell 3.0 preference variables.

Hey, Scripting Guy! Question How can you easily find a listing of all the Windows PowerShell 3.0 preference variables?

Hey, Scripting Guy! Answer Use the Get-Help cmdlet to display about_Preference_Variables Help.

You do not need to type the entire command—the following command opens the Help:

help about_pref*

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Also, you can type "help about_pre" and hit tab and tab complete hooks you up...

  • hi,

    PS II> # 8 chars :)

    PS II> man Pref

  • Always helpful, isn't it?

  • @Brian Wilhite yes you are correct

    @Walid Toumi even better :-) "PowerShell MAN Pages"

    @Livio Von Buren thank you.

  • hi

    you can extend the man like this:

    $hs=@'

    if($Name -and (gcm $Name).CommandType -eq 'Application') {

     iex "$Name /? | more"

    } else {

     Get-Help @PSBoundParameters | more

    }

    '@

    ${function:help} = ${function:help} -replace '.*@PSBoundParameters.*',$hs

    PS II> help tasklist