.gcm File

  • GCM file extension Information that help open, edit, and convert.GCM file. When there is a problem with opening files with the extension.GCM you do not need to immediately use the services of the IT expert.
  • For example, a file name GCM MMMED20101106 1.xml will be renamed to GCM MMMED20101106 1.xml.submitted. This makes it clear which files have/have not been submitted for processing. There may be a delay between the point at which the Member deposits the file on MFT and the file being identified for processing and being renamed.

Recommended security parameters for file encryption on disk. This is the optimal recommended usage for the specified GCM parameters when encrypting files of different size on disk. My goal is to optimize the key usage before there is a need to re-generate the key or the initialization vector (IV). Key Size: 256 bits; IV Size: 96 bits. PCS and GCM Submission. The Instrument Exchange Code (/Instrmt@Exch) must be included within PCS/GCM file submissions; i.e. Specification of the correct Exchange Code relating to the product will be mandatory. GSCD Data File. As of Tuesday, 23 September 2014, the GSCD data file will additionally contain contract data for those Liffe contracts.

-->

Syntax

Description

The Get-Command cmdlet gets all commands that are installed on the computer, including cmdlets,aliases, functions, filters, scripts, and applications. Get-Command gets the commands fromPowerShell modules and commands that were imported from other sessions. To get only commands thathave been imported into the current session, use the ListImported parameter.

Without parameters, Get-Command gets all of the cmdlets, functions, and aliases installed on thecomputer. Get-Command * gets all types of commands, including all of the non-PowerShell files inthe Path environment variable ($env:Path), which it lists in the Application command type.

Get-Command that uses the exact name of the command, without wildcard characters, automaticallyimports the module that contains the command so that you can use the command immediately. To enable,disable, and configure automatic importing of modules, use the $PSModuleAutoLoadingPreferencepreference variable. For more information, see about_Preference_Variables.

Get-Command gets its data directly from the command code, unlike Get-Help, which gets itsinformation from help topics.

Starting in Windows PowerShell 5.0, results of the Get-Command cmdlet display a Version columnby default. A new Version property has been added to the CommandInfo class.

Examples

Example 1: Get cmdlets, functions, and aliases

This command gets the PowerShell cmdlets, functions, and aliases that are installed on the computer.

Example 2: Get commands in the current session

This command uses the ListImported parameter to get only the commands in the current session.

Example 3: Get cmdlets and display them in order

This command gets all of the cmdlets, sorts them alphabetically by the noun in the cmdlet name, andthen displays them in noun-based groups. This display can help you find the cmdlets for a task.

Example 4: Get commands in a module

This command uses the Module parameter to get the commands in the Microsoft.PowerShell.Securityand Microsoft.PowerShell.Utility modules.

Example 5: Get information about a cmdlet

This command gets information about the Get-AppLockerPolicy cmdlet. It also imports theAppLocker module, which adds all of the commands in the AppLocker module to the currentsession.

When a module is imported automatically, the effect is the same as using the Import-Module cmdlet.The module can add commands, types and formatting files, and run scripts in the session. To enable,disable, and configuration automatic importing of modules, use the $PSModuleAutoLoadingPreferencepreference variable. For more information, see about_Preference_Variables.

Example 6: Get the syntax of a cmdlet

This command uses the ArgumentList and Syntax parameters to get the syntax of theGet-ChildItem cmdlet when it is used in the Cert: drive. The Cert: drive is a PowerShell drivethat the Certificate Provider adds to the session.

When you compare the syntax displayed in the output with the syntax that is displayed when you omitthe Args (ArgumentList) parameter, you'll see that the Certificate provider adds a dynamicparameter, CodeSigningCert, to the Get-ChildItem cmdlet.

For more information about the Certificate provider, see about_Certificate_Provider.

Example 7: Get dynamic parameters

The command in the example uses the Get-DynamicParameters function to get the dynamic parametersthat the Certificate provider adds to the Get-ChildItem cmdlet when it is used in the Cert: drive.

The Get-DynamicParameters function in this example gets the dynamic parameters of a cmdlet. Thisis an alternative to the method used in the previous example. Dynamic parameter can be added to acmdlet by another cmdlet or a provider.

Example 8: Get all commands of all types

This command gets all commands of all types on the local computer, including executable files in thepaths of the Path environment variable ($env:path).

It returns an ApplicationInfo object (System.Management.Automation.ApplicationInfo) for eachfile, not a FileInfo object (System.IO.FileInfo).

Gcm file format

Example 9: Get cmdlets by using a parameter name and type

This command gets cmdlets that have a parameter whose name includes Auth and whose type isAuthenticationMechanism.

You can use a command like this one to find cmdlets that let you specify the method that is used toauthenticate the user.

The ParameterType parameter distinguishes parameters that take an AuthenticationMechanismvalue from those that take an AuthenticationLevel parameter, even when they have similar names.

Example 10: Get an alias

This example shows how to use the Get-Command cmdlet with an alias.

Although it is typically used on cmdlets and functions, Get-Command also gets scripts, functions,aliases, and executable files.

The output of the command shows the special view of the Name property value for aliases. Theview shows the alias and the full command name.

Example 11: Get Syntax from an alias

This example shows how to get the syntax along with the standard name of an alias.

The output of the command shows the labeled alias with the standard name, followed by the syntax.

Example 12: Get all instances of the Notepad command

This example uses the All parameter of the Get-Command cmdlet to show all instances of theNotepad command on the local computer.

The All parameter is useful when there is more than one command with the same name in thesession.

Beginning in Windows PowerShell 3.0, by default, when the session includes multiple commands withthe same name, Get-Command gets only the command that runs when you type the command name. Withthe All parameter, Get-Command gets all commands with the specified name and returns them inexecution precedence order. To run a command other than the first one in the list, type the fullyqualified path to the command.

For more information about command precedence, see about_Command_Precedence.

Example 13: Get the name of a module that contains a cmdlet

This command gets the name of the module in which the Get-Date cmdlet originated.The command uses the ModuleName property of all commands.

This command format works on commands in PowerShell modules, even if they are not imported into thesession.

Example 14: Get cmdlets and functions that have an output type

This command gets the cmdlets and functions that have an output type and the type of objects thatthey return.

The first part of the command gets all cmdlets. A pipeline operator (|) sends the cmdlets to theWhere-Object cmdlet, which selects only the ones in which the OutputType property ispopulated. Another pipeline operator sends the selected cmdlet objects to the Format-List cmdlet,which displays the name and output type of each cmdlet in a list.

The OutputType property of a CommandInfo object has a non-null value only when the cmdletcode defines the OutputType attribute for the cmdlet.

Example 15: Get cmdlets that take a specific object type as input

This command finds cmdlets that take net adapter objects as input. You can use this command formatto find the cmdlets that accept the type of objects that any command returns.

The command uses the PSTypeNames intrinsic property of all objects, which gets the types thatdescribe the object. To get the PSTypeNames property of a net adapter, and not thePSTypeNames property of a collection of net adapters, the command uses array notation to get thefirst net adapter that the cmdlet returns.

Example 16: Get commands using a fuzzy match

In this example, the name of the command deliberately has a typo as 'get-commnd'.Using the -UseFuzzyMatching switch, the cmdlet determined that the best matchwas Get-Command followed by other native commands on the system that were asimilar match.

Parameters

Gcm
-All

Indicates that this cmdlet gets all commands, including commands of the same type that have the samename. By default, Get-Command gets only the commands that run when you type the command name.

For more information about the method that PowerShell uses to select the command to run whenmultiple commands have the same name, see about_Command_Precedence.For information about module-qualified command names and running commands that do not run by defaultbecause of a name conflict, see about_Modules.

Gcm File Format

This parameter was introduced in Windows PowerShell 3.0.

In Windows PowerShell 2.0, Get-Command gets all commands by default.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Specifies an array of arguments. This cmdlet gets information about a cmdlet or function when it isused with the specified parameters ('arguments'). The alias for ArgumentList is Args.

To detect dynamic parameters that are available only when certain other parameters are used, set thevalue of ArgumentList to the parameters that trigger the dynamic parameters.

To detect the dynamic parameters that a provider adds to a cmdlet, set the value of theArgumentList parameter to a path in the provider drive, such as WSMan:, HKLM:, or Cert:. Whenthe command is a PowerShell provider cmdlet, enter only one path in each command. The providercmdlets return only the dynamic parameters for the first path the value of ArgumentList. Forinformation about the provider cmdlets, see about_Providers.

Type:Object[]
Aliases:Args
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Specifies the types of commands that this cmdlet gets. Enter one or more command types. UseCommandType or its alias, Type. By default, Get-Command gets all cmdlets, functions, andaliases.

The acceptable values for this parameter are:

  • Alias: Gets the aliases of all PowerShell commands. For more information, see about_Aliases.
  • All: Gets all command types. This parameter value is the equivalent of Get-Command *.
  • Application: Gets non-PowerShell files in paths listed in the Path environmentvariable ($env:path), including .txt, .exe, and .dll files. For more information about thePath environment variable, see about_Environment_Variables.
  • Cmdlet: Gets all cmdlets.
  • ExternalScript: Gets all .ps1 files in the paths listed in the Path environment variable($env:path).
  • Filter and Function: Gets all PowerShell advanced and simple functions and filters.
  • Script: Gets all script blocks. To get PowerShell scripts (.ps1 files), use the ExternalScriptvalue.

These values are defined as a flag-based enumeration. You can combine multiple values together toset multiple flags using this parameter. The values can be passed to the CommandType parameteras an array of values or as a comma-separated string of those values. The cmdlet will combine thevalues using a binary-OR operation. Passing values as an array is the simplest option and alsoallows you to use tab-completion on the values.

Type:CommandTypes
Aliases:Type
Accepted values:Alias, Function, Filter, Cmdlet, ExternalScript, Application, Script, Workflow, Configuration, All
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Specifies modules with names that are specified in the form of ModuleSpecification objects,described in the Remarks section of ModuleSpecification Constructor (Hashtable).For example, the FullyQualifiedModule parameter accepts a module name that is specified in oneof the following formats:

  • @{ModuleName = 'modulename'; ModuleVersion = 'version_number'}
  • @{ModuleName = 'modulename'; ModuleVersion = 'version_number'; Guid = 'GUID'}

ModuleName and ModuleVersion are required, but Guid is optional.

You cannot specify the FullyQualifiedModule parameter in the same command as a Moduleparameter. The two parameters are mutually exclusive.

Type:ModuleSpecification[]
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Indicates that this cmdlet gets only commands in the current session.

Starting in PowerShell 3.0, by default, Get-Command gets all installed commands, including, butnot limited to, the commands in the current session. In PowerShell 2.0, it gets only commands in thecurrent session.

This parameter was introduced in Windows PowerShell 3.0.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Specifies an array of modules. This cmdlet gets the commands that came from the specified modules.Enter the names of modules or module objects.

This parameter takes string values, but the value of this parameter can also be a PSModuleInfoobject, such as the objects that the Get-Module and Import-PSSession cmdlets return.

Type:String[]
Aliases:PSSnapin
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:True

Specifies an array of names. This cmdlet gets only commands that have the specified name. Enter aname or name pattern. Wildcard characters are permitted.

To get commands that have the same name, use the All parameter. When two commands have the samename, by default, Get-Command gets the command that runs when you type the command name.

Type:String[]
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:True

Specifies an array of command nouns. This cmdlet gets commands, which include cmdlets, functions,and aliases, that have names that include the specified noun. Enter one or more nouns or nounpatterns. Wildcard characters are permitted.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:True

Specifies an array of parameter names. This cmdlet gets commands in the session that have thespecified parameters. Enter parameter names or parameter aliases. Wildcard characters are supported.

The ParameterName and ParameterType parameters search only commands in the current session.

This parameter was introduced in Windows PowerShell 3.0.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:True

Specifies an array of parameter names. This cmdlet gets commands in the session that have parametersof the specified type. Enter the full name or partial name of a parameter type. Wildcard charactersare supported.

The ParameterName and ParameterType parameters search only commands in the current session.

This parameter was introduced in Windows PowerShell 3.0.

Type:PSTypeName[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:True

Indicates that this cmdlet displays command information.

This parameter was introduced in Windows PowerShell 5.0.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Indicates that this cmdlet gets only the following specified data about the command:

  • Aliases. Gets the standard name and syntax.
  • Cmdlets. Gets the syntax.
  • Functions and filters. Gets the function definition.
  • Scripts and applications or files. Gets the path and filename.
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Specifies the number of commands to get. You can use this parameter to limit the output of acommand.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Indicates using matching of the characters in the command to find with uppercase charactersin a command. For example, i-psdf would match Import-PowerShellDataFile as each ofthe characters to find matches an uppercase character in the result. When using thistype of match, any wildcards will result in no matches.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Indicates using a fuzzy matching algorithm when finding commands. The order of the output is fromclosest match to least likely match. Wildcards should not be used with fuzzy matching as it willattempt to match commands that may contain those wildcard characters.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Specifies an array of command verbs. This cmdlet gets commands, which include cmdlets, functions,and aliases, that have names that include the specified verb. Enter one or more verbs or verbpatterns. Wildcard characters are permitted.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:True

Inputs

You can pipe command names to this cmdlet.

Outputs

This cmdlet returns objects derived from the CommandInfo class. The type of object that isreturned depends on the type of command that Get-Command gets.

Represents aliases.

Represents applications and files.

Gcm File Format

Represents cmdlets.

Represents functions and filters.

Notes

  • When more than one command that has the same name is available to the session, Get-Commandreturns the command that runs when you type the command name. To get commands that have the samename, listed in run order, use the All parameter. For more information, seeabout_Command_Precedence.
  • When a module is imported automatically, the effect is the same as using the Import-Modulecmdlet. The module can add commands, types and formatting files, and run scripts in the session.To enable, disable, and configuration automatic importing of modules, use the$PSModuleAutoLoadingPreference preference variable. For more information, seeabout_Preference_Variables.

Related Links

-->

Syntax

Description

The Get-Command cmdlet gets all commands that are installed on the computer, including cmdlets,aliases, functions, filters, scripts, and applications. Get-Command gets the commands fromPowerShell modules and commands that were imported from other sessions. To get only commands thathave been imported into the current session, use the ListImported parameter.

Without parameters, Get-Command gets all of the cmdlets, functions, and aliases installed on thecomputer. Get-Command * gets all types of commands, including all of the non-PowerShell files inthe Path environment variable ($env:Path), which it lists in the Application command type.

Get-Command that uses the exact name of the command, without wildcard characters, automaticallyimports the module that contains the command so that you can use the command immediately. To enable,disable, and configure automatic importing of modules, use the $PSModuleAutoLoadingPreferencepreference variable. For more information, see about_Preference_Variables.

Get-Command gets its data directly from the command code, unlike Get-Help, which gets itsinformation from help topics.

Starting in Windows PowerShell 5.0, results of the Get-Command cmdlet display a Version columnby default. A new Version property has been added to the CommandInfo class.

Examples

Example 1: Get cmdlets, functions, and aliases

This command gets the PowerShell cmdlets, functions, and aliases that are installed on the computer.

Example 2: Get commands in the current session

Gcm File Dolphin

This command uses the ListImported parameter to get only the commands in the current session.

Example 3: Get cmdlets and display them in order

This command gets all of the cmdlets, sorts them alphabetically by the noun in the cmdlet name, andthen displays them in noun-based groups. This display can help you find the cmdlets for a task.

Example 4: Get commands in a module

This command uses the Module parameter to get the commands in the Microsoft.PowerShell.Securityand Microsoft.PowerShell.Utility modules.

Example 5: Get information about a cmdlet

This command gets information about the Get-AppLockerPolicy cmdlet. It also imports theAppLocker module, which adds all of the commands in the AppLocker module to the currentsession.

When a module is imported automatically, the effect is the same as using the Import-Module cmdlet.The module can add commands, types and formatting files, and run scripts in the session. To enable,disable, and configuration automatic importing of modules, use the $PSModuleAutoLoadingPreferencepreference variable. For more information, see about_Preference_Variables.

Example 6: Get the syntax of a cmdlet

This command uses the ArgumentList and Syntax parameters to get the syntax of theGet-ChildItem cmdlet when it is used in the Cert: drive. The Cert: drive is a PowerShell drivethat the Certificate Provider adds to the session.

When you compare the syntax displayed in the output with the syntax that is displayed when you omitthe Args (ArgumentList) parameter, you'll see that the Certificate provider adds a dynamicparameter, CodeSigningCert, to the Get-ChildItem cmdlet.

For more information about the Certificate provider, see about_Certificate_Provider.

Example 7: Get dynamic parameters

The command in the example uses the Get-DynamicParameters function to get the dynamic parametersthat the Certificate provider adds to the Get-ChildItem cmdlet when it is used in the Cert: drive.

The Get-DynamicParameters function in this example gets the dynamic parameters of a cmdlet. Thisis an alternative to the method used in the previous example. Dynamic parameter can be added to acmdlet by another cmdlet or a provider.

Example 8: Get all commands of all types

This command gets all commands of all types on the local computer, including executable files in thepaths of the Path environment variable ($env:path).

It returns an ApplicationInfo object (System.Management.Automation.ApplicationInfo) for eachfile, not a FileInfo object (System.IO.FileInfo).

Example 9: Get cmdlets by using a parameter name and type

This command gets cmdlets that have a parameter whose name includes Auth and whose type isAuthenticationMechanism.

You can use a command like this one to find cmdlets that let you specify the method that is used toauthenticate the user.

The ParameterType parameter distinguishes parameters that take an AuthenticationMechanismvalue from those that take an AuthenticationLevel parameter, even when they have similar names.

Example 10: Get an alias

This example shows how to use the Get-Command cmdlet with an alias.

Although it is typically used on cmdlets and functions, Get-Command also gets scripts, functions,aliases, and executable files.

The output of the command shows the special view of the Name property value for aliases. Theview shows the alias and the full command name.

Example 11: Get Syntax from an alias

This example shows how to get the syntax along with the standard name of an alias.

The output of the command shows the labeled alias with the standard name, followed by the syntax.

Example 12: Get all instances of the Notepad command

This example uses the All parameter of the Get-Command cmdlet to show all instances of theNotepad command on the local computer.

The All parameter is useful when there is more than one command with the same name in thesession.

Beginning in Windows PowerShell 3.0, by default, when the session includes multiple commands withthe same name, Get-Command gets only the command that runs when you type the command name. Withthe All parameter, Get-Command gets all commands with the specified name and returns them inexecution precedence order. To run a command other than the first one in the list, type the fullyqualified path to the command.

For more information about command precedence, see about_Command_Precedence.

Example 13: Get the name of a module that contains a cmdlet

This command gets the name of the module in which the Get-Date cmdlet originated.The command uses the ModuleName property of all commands.

This command format works on commands in PowerShell modules, even if they are not imported into thesession.

Example 14: Get cmdlets and functions that have an output type

This command gets the cmdlets and functions that have an output type and the type of objects thatthey return.

The first part of the command gets all cmdlets. A pipeline operator (|) sends the cmdlets to theWhere-Object cmdlet, which selects only the ones in which the OutputType property ispopulated. Another pipeline operator sends the selected cmdlet objects to the Format-List cmdlet,which displays the name and output type of each cmdlet in a list.

The OutputType property of a CommandInfo object has a non-null value only when the cmdletcode defines the OutputType attribute for the cmdlet.

Example 15: Get cmdlets that take a specific object type as input

This command finds cmdlets that take net adapter objects as input. You can use this command formatto find the cmdlets that accept the type of objects that any command returns.

The command uses the PSTypeNames intrinsic property of all objects, which gets the types thatdescribe the object. To get the PSTypeNames property of a net adapter, and not thePSTypeNames property of a collection of net adapters, the command uses array notation to get thefirst net adapter that the cmdlet returns.

Example 16: Get commands using a fuzzy match

Gcm Files

In this example, the name of the command deliberately has a typo as 'get-commnd'.Using the -UseFuzzyMatching switch, the cmdlet determined that the best matchwas Get-Command followed by other native commands on the system that were asimilar match.

Parameters

-All

Indicates that this cmdlet gets all commands, including commands of the same type that have the samename. By default, Get-Command gets only the commands that run when you type the command name.

For more information about the method that PowerShell uses to select the command to run whenmultiple commands have the same name, see about_Command_Precedence.For information about module-qualified command names and running commands that do not run by defaultbecause of a name conflict, see about_Modules.

This parameter was introduced in Windows PowerShell 3.0.

In Windows PowerShell 2.0, Get-Command gets all commands by default.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Specifies an array of arguments. This cmdlet gets information about a cmdlet or function when it isused with the specified parameters ('arguments'). The alias for ArgumentList is Args.

To detect dynamic parameters that are available only when certain other parameters are used, set thevalue of ArgumentList to the parameters that trigger the dynamic parameters.

To detect the dynamic parameters that a provider adds to a cmdlet, set the value of theArgumentList parameter to a path in the provider drive, such as WSMan:, HKLM:, or Cert:. Whenthe command is a PowerShell provider cmdlet, enter only one path in each command. The providercmdlets return only the dynamic parameters for the first path the value of ArgumentList. Forinformation about the provider cmdlets, see about_Providers.

Type:Object[]
Aliases:Args
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Specifies the types of commands that this cmdlet gets. Enter one or more command types. UseCommandType or its alias, Type. By default, Get-Command gets all cmdlets, functions, andaliases.

The acceptable values for this parameter are:

  • Alias: Gets the aliases of all PowerShell commands. For more information, see about_Aliases.
  • All: Gets all command types. This parameter value is the equivalent of Get-Command *.
  • Application: Gets non-PowerShell files in paths listed in the Path environmentvariable ($env:path), including .txt, .exe, and .dll files. For more information about thePath environment variable, see about_Environment_Variables.
  • Cmdlet: Gets all cmdlets.
  • ExternalScript: Gets all .ps1 files in the paths listed in the Path environment variable($env:path).
  • Filter and Function: Gets all PowerShell advanced and simple functions and filters.
  • Script: Gets all script blocks. To get PowerShell scripts (.ps1 files), use the ExternalScriptvalue.

These values are defined as a flag-based enumeration. You can combine multiple values together toset multiple flags using this parameter. The values can be passed to the CommandType parameteras an array of values or as a comma-separated string of those values. The cmdlet will combine thevalues using a binary-OR operation. Passing values as an array is the simplest option and alsoallows you to use tab-completion on the values.

Type:CommandTypes
Aliases:Type
Accepted values:Alias, Function, Filter, Cmdlet, ExternalScript, Application, Script, Workflow, Configuration, All
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Specifies modules with names that are specified in the form of ModuleSpecification objects,described in the Remarks section of ModuleSpecification Constructor (Hashtable).For example, the FullyQualifiedModule parameter accepts a module name that is specified in oneof the following formats:

  • @{ModuleName = 'modulename'; ModuleVersion = 'version_number'}
  • @{ModuleName = 'modulename'; ModuleVersion = 'version_number'; Guid = 'GUID'}

ModuleName and ModuleVersion are required, but Guid is optional.

You cannot specify the FullyQualifiedModule parameter in the same command as a Moduleparameter. The two parameters are mutually exclusive.

Type:ModuleSpecification[]
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Indicates that this cmdlet gets only commands in the current session.

Starting in PowerShell 3.0, by default, Get-Command gets all installed commands, including, butnot limited to, the commands in the current session. In PowerShell 2.0, it gets only commands in thecurrent session.

This parameter was introduced in Windows PowerShell 3.0.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Specifies an array of modules. This cmdlet gets the commands that came from the specified modules.Enter the names of modules or module objects.

This parameter takes string values, but the value of this parameter can also be a PSModuleInfoobject, such as the objects that the Get-Module and Import-PSSession cmdlets return.

Type:String[]
Aliases:PSSnapin
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:True

Specifies an array of names. This cmdlet gets only commands that have the specified name. Enter aname or name pattern. Wildcard characters are permitted.

To get commands that have the same name, use the All parameter. When two commands have the samename, by default, Get-Command gets the command that runs when you type the command name.

Type:String[]
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:True
File

Specifies an array of command nouns. This cmdlet gets commands, which include cmdlets, functions,and aliases, that have names that include the specified noun. Enter one or more nouns or nounpatterns. Wildcard characters are permitted.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:True

Specifies an array of parameter names. This cmdlet gets commands in the session that have thespecified parameters. Enter parameter names or parameter aliases. Wildcard characters are supported.

The ParameterName and ParameterType parameters search only commands in the current session.

This parameter was introduced in Windows PowerShell 3.0.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:True

Specifies an array of parameter names. This cmdlet gets commands in the session that have parametersof the specified type. Enter the full name or partial name of a parameter type. Wildcard charactersare supported.

The ParameterName and ParameterType parameters search only commands in the current session.

This parameter was introduced in Windows PowerShell 3.0.

Type:PSTypeName[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:True

Indicates that this cmdlet displays command information.

This parameter was introduced in Windows PowerShell 5.0.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Indicates that this cmdlet gets only the following specified data about the command:

  • Aliases. Gets the standard name and syntax.
  • Cmdlets. Gets the syntax.
  • Functions and filters. Gets the function definition.
  • Scripts and applications or files. Gets the path and filename.
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Specifies the number of commands to get. You can use this parameter to limit the output of acommand.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Indicates using matching of the characters in the command to find with uppercase charactersin a command. For example, i-psdf would match Import-PowerShellDataFile as each ofthe characters to find matches an uppercase character in the result. When using thistype of match, any wildcards will result in no matches.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Indicates using a fuzzy matching algorithm when finding commands. The order of the output is fromclosest match to least likely match. Wildcards should not be used with fuzzy matching as it willattempt to match commands that may contain those wildcard characters.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Specifies an array of command verbs. This cmdlet gets commands, which include cmdlets, functions,and aliases, that have names that include the specified verb. Enter one or more verbs or verbpatterns. Wildcard characters are permitted.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:True

Inputs

You can pipe command names to this cmdlet.

Outputs

This cmdlet returns objects derived from the CommandInfo class. The type of object that isreturned depends on the type of command that Get-Command gets.

Represents aliases.

Represents applications and files.

Represents cmdlets.

Represents functions and filters.

Notes

  • When more than one command that has the same name is available to the session, Get-Commandreturns the command that runs when you type the command name. To get commands that have the samename, listed in run order, use the All parameter. For more information, seeabout_Command_Precedence.
  • When a module is imported automatically, the effect is the same as using the Import-Modulecmdlet. The module can add commands, types and formatting files, and run scripts in the session.To enable, disable, and configuration automatic importing of modules, use the$PSModuleAutoLoadingPreference preference variable. For more information, seeabout_Preference_Variables.

Related Links