Get-Help

Display information about Windows PowerShell cmdlets and concepts.

Syntax
      Get-Help [[-name] string] [-component string[]]
         [-functionality string[]]
            [-role string[]] [-category string[]]
               [ {-full | -detailed | -examples | -parameter string}]
                  [CommonParameters]
Key
    -name 
        Request help about string
        A cmdlet name, topic or alias, Wildcards are permitted. 
        e.g. -name Get-Member, -name "About_Object", -name "ls" 
        The "-Name" is optional.
        
    -component 
        Display a list of cmdlets with the specified component value,
        such as "Exchange." The core cmdlets do not have a value for
        this property.
        
    -functionality 
        Display help for cmdlets with the specified functionality.
        The core cmdlets do not have a value for this property.
        
    -role 
        Display help customized for the specified user role.  
        The role that the user plays in an organization.
        This parameter has no effect for the core cmdlets.
        
    -category 
        Display help for items in the specified category.
        Valid values for String are:
           * Alias:    Help for a cmdlet by alias name.
           * Cmdlet:  Help for a cmdlet by cmdlet name.
           * HelpFile: Help about concepts ("About_" topics.)
        
    -full 
        Display the entire help file for a cmdlet, including
        technical information about the parameters.
        This parameter has no effect on displays of
        conceptual ("About_") help.
        
    -detailed 
        Display additional information about a cmdlet, including
        descriptions of the parameters and examples of using
        the cmdlet. This parameter has no effect on displays
        of conceptual ("About_") help.
        
    -examples 
        Display examples of using the cmdlet. 
        To display only the examples, type 
        "(get-help cmdlet-name).examples".
        
    -parameter 
        Display a detailed description of the specified parameter.
        These descriptions are included in the Full view of help.
        Wildcards are permitted.

   CommonParameters:
       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutVariable.

Examples

List of all help files in the PowerShell help system:

PS C:\>get-help *

Display detailed help for the Get-Childitem cmdlet by specifying one of its aliases, ls :

PS C:\>get-help ls -detailed

Display descriptions of the parameters of the Get-Childitem cmdlet that begin with "f" (filter and force):

PS C:\>get-help get-childitem -parameter f*

To see descriptions of all parameters, type "get-help get-childitem parameter*"

Display only the syntax of the write-object cmdlet:

PS C:\>(get-help write-object).syntax

Syntax is one of many properties of help objects; others are: description, details, examples, and parameters.

To find all properties and methods of help objects, type "get-help <cmdlet-name> | get-member", for example, "get-help start-service | get-member"

"Evangelise wherever you go, and, if necessary, use words" - St Francis of Assisi

Related Powershell Commands:

Get-Command - Retrieve basic information about a command
Get-PSDrive - Get drive information (DriveInfo)
Get-Member - Enumerate the properties of an object
Equivalent bash command: man - Display helpful information about commands.



Back to the Top

Simon Sheppard
SS64.com