Get-Command
Use Get-Command to get information about PowerShell commands, including cmdlets, aliases, functions, filters, scripts, applications, and external commands.
Documentation: Microsoft Learn — get-command
Syntax
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>]- Stage 1Get-Command
-Name -Module -CommandType -TotalCount
Try it
Browser simulation · fictional data; no changes to your computer.
Follow the objects
Run the command to inspect each stage.
Examples
List all with Get-Command
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
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
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
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.
The sandbox is visible now. Sign in with Google only when you run or check a task; commands and temporary files are discarded when you leave.
Run a command to inspect its result.
Inspect starting data
Supported syntax
Virtual files
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