snippetbashTip
Get-Command — List and get available commands in the current PowerShell session. This command can only be run thro
Viewed 0 times
availablecommandcommandsandcliget-commandlistget
windows
Problem
How to use the
Get-Command command: List and get available commands in the current PowerShell session. This command can only be run through PowerShell. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/get-command>.Solution
Get-Command — List and get available commands in the current PowerShell session. This command can only be run through PowerShell. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/get-command>.List all available PowerShell commands (aliases, cmdlets, functions) in the current computer:
Get-CommandList all available PowerShell commands in the current session:
Get-Command -ListImportedList only PowerShell aliases/cmdlets/functions available in the computer:
Get-Command -Type {{Alias|Cmdlet|Function}}List only programs or commands available on PATH in the current session:
Get-Command -Type ApplicationList only PowerShell commands by the module name, e.g.
Microsoft.PowerShell.Utility for utility-related commands:Get-Command -Module {{module}}Get the command information (e.g. version number or module name) by its name:
Get-Command {{command}}Code Snippets
List all available PowerShell commands (aliases, cmdlets, functions) in the current computer
Get-CommandList all available PowerShell commands in the current session
Get-Command -ListImportedList only PowerShell aliases/cmdlets/functions available in the computer
Get-Command -Type {{Alias|Cmdlet|Function}}List only programs or commands available on PATH in the current session
Get-Command -Type ApplicationList only PowerShell commands by the module name, e.g. `Microsoft.PowerShell.Utility` for utility-related commands
Get-Command -Module {{module}}Context
tldr-pages: windows/Get-Command
Revisions (0)
No revisions yet.