1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 18:22:08 +02:00
tldr/pages/windows/get-command.md
Reinhart Previano Koentjoro e44fd29d4c
windows/*: add more PowerShell commands (#11612)
* windows/*: add more PowerShell commands

* get-commandL fix typo

* Update install-module.md

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-11-30 08:09:50 +01:00

29 lines
943 B
Markdown

# 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-Command`
- List all available PowerShell commands in the current session:
`Get-Command -ListImported`
- List 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 Application`
- List 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}}`