Using the Get-Command, Get-Help, and Get-Member cmdlets
There are some PowerShell cmdlets that everyone should know. Knowing these cmdlets will help you discover other cmdlets, their functions, parameters, and returned objects.
Using Get-Command
The first cmdlet that you should know is Get-Command
. This cmdlet returns all the commands that are installed on your computer. The Get-Command
cmdlet has the following syntax. The first parameter set is named CmdletSet
:
Get-Command [[-Name] <String[]>] [[-ArgumentList] <Object[]>] [-All] [-CommandType {Alias | Function | Filter | Cmdlet | ExternalScript | Application | Script | Workflow | Configuration | All}] [-FullyQualifiedModule <ModuleSpecification[]>] [-ListImported] [-Module <String[]>] [-ParameterName <String[]>] [-ParameterType <PSTypeName[]>] [-ShowCommandInfo] [-Syntax] [-TotalCount <Int32>] [<CommonParameters>]
The second parameter set is named AllCommandSet
:
Get-Command [[-ArgumentList]...