Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Get-Command

Get-Command - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Get-Command

Short description
Gets basic information about cmdlets and other elements of Windows PowerShell commands.

Syntax


Description
The Get-Command cmdlet gets basic information about cmdlets and other elements of Windows PowerShell commands in th
e session, such as aliases, functions, filters, scripts, and applications. 

Get-Command gets its data directly from the code of a cmdlet, function, script, or alias, unlike Get-Help, which ge
ts its information from help topic files.

Without parameters, "Get-Command" gets all of the cmdlets and functions in the current session. "Get-Command *" get
s all Windows PowerShell elements and all of the non-Windows-PowerShell files in the Path environment variable ($en
v:path). It groups the files in the "Application" command type. 

You can use the Module parameter of Get-Command to find the commands that were added to the session by adding a Win
dows PowerShell snap-in or importing a module.