PowerTip: Easily Find the PowerShell 3.0 Preference Variables

PowerTip: Easily Find the PowerShell 3.0 Preference Variables

Rate This
  • Comments 5

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*

Leave a Comment
  • Please add 7 and 2 and type the answer here:
  • Post
  • 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

Page 1 of 1 (5 items)