PowerShell Genie

Get-Command

Use Get-Command to get information about PowerShell commands, including cmdlets, aliases, functions, filters, scripts, applications, and external commands.

Command 2 min read Windows PowerShell 5.1 and PowerShell 7

Documentation: Microsoft Learn — get-command

Syntax

1PS> Get-Command [[-Name] <string[]>] [-Module <String[]>] [-CommandType <CommandTypes[]>] [-TotalCount <Int32>] [<CommonParameters>]
See the command anatomy

Inspect this authored example with fictional data in the bounded browser model. The numbered stages show how its objects change.

Get-Command [[-Name] <string[]>] [-Module <String[]>] [-CommandType <CommandTypes[]>] [-TotalCount <Int32>] [<CommonParameters>]
  1. Stage 1Get-Command-Name -Module -CommandType -TotalCount

    Try it

    Windows PowerShell

    Browser simulation · fictional data; no changes to your computer.

    Interactive simulation · fictional data

    Examples

    List all with Get-Command

    1PS> Get-Command Get-*
    Show reference output

    Illustrative output · values vary by environment

    Name           Verb  Noun       Module                         
    -------------  ----  ---------  -------------------------------
    Get-Service    Get   Service    Microsoft.PowerShell.Management
    Get-Process    Get   Process    Microsoft.PowerShell.Management
    Get-ADUser     Get   ADUser     ActiveDirectory                
    Get-AzVM       Get   AzVM       Az.Compute                     
    Get-ChildItem  Get   ChildItem  Microsoft.PowerShell.Management

    Get-Command -Verb Get

    1PS> Get-Command -Verb Get -Noun Service
    Show reference output

    Illustrative output · values vary by environment

    Name         Verb  Noun     Module                         
    -----------  ----  -------  -------------------------------
    Get-Service  Get   Service  Microsoft.PowerShell.Management

    Get-Command -Module Microsoft.PowerShell.Management

    1PS> Get-Command -Module Microsoft.PowerShell.Management
    Show reference output

    Illustrative output · values vary by environment

    CommandType  Name           Version  Source
    -----------  -------------  -------  -------------------------------
    Cmdlet       Get-Process    7.5.2    Microsoft.PowerShell.Management
    Cmdlet       Get-Service    7.5.2    Microsoft.PowerShell.Management
    Cmdlet       Get-ChildItem  7.5.2    Microsoft.PowerShell.Management

    Parameters

    Parameter definitions:

    • -Name
    • -Module
    • -CommandType
    • -TotalCount

    Microsoft Learn — get-command

    Discover the command available in your session

    Get-Command discovers commands such as cmdlets, functions and applications. Filter with -Verb, -Noun or -Module to narrow the list before reading help.

    Inspect conflicting names

    When a function, alias or application shares a name, inspect Get-Command Name -All. Check CommandType, Source and the definition instead of assuming the first command is the one you intended.

    Installed is not the same as loaded

    Discoverable module commands can be listed even before their module is explicitly imported. -ListImported limits the view to commands already available from imported modules.

    Discovery reports what this computer can resolve. It does not prove that your account can execute the command successfully against a remote service. Follow the result with help for the exact command and installed version.

    Read syntax and examples · Inspect module discovery

    Updated 1 October 2026. Browser outputs are fictional; check the installed module help for your environment.

    Put this command to work

    Discover service commands

    Find commands with the noun Service. Return the complete command records.

    Review the lesson

    Recap

    Get-Command Use Get-Command to get information about PowerShell commands, including cmdlets, aliases, functions, filters, scripts, applications, and external commands.

    Next: Get-ADDomain
    Genie guideGet-Command

    Use Get-Command to get information about PowerShell commands, including cmdlets, aliases, functions, filters, scripts, applications, and external commands. The console below is pre-loaded — run it, then change a value and run it again.