Share via


Get-SCOMCommand

Gets Operations Manager commands in the current session.

Syntax

CmdletSet (Default)

Get-SCOMCommand
    [-Verb <String[]>]
    [-Noun <String[]>]
    [<CommonParameters>]

AllCommandSet

Get-SCOMCommand
    [[-Name] <String[]>]
    [-CommandType <CommandTypes>]
    [<CommonParameters>]

Description

The Get-SCOMCommand cmdlet gets System Center - Operations Manager commands in the current session. If you do not specify any parameters for the cmdlet, the cmdlet returns all commands in the current session.

Examples

Example 1: Get commands by using a name

PS C:\>Get-SCOMCommand "*agent*"

This command gets all commands in the Operations Manager module that have agent in the name of the command.

Example 2: Get commands by using a cmdlet verb

PS C:\>Get-SCOMCommand -Verb "Get"

This command gets all commands in the Operations Manager module that use the verb Get.

Parameters

-CommandType

Specifies a Operations Manager command type.

Parameter properties

Type:CommandTypes
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Type

Parameter sets

AllCommandSet
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Name

Specifies an array of names of Operations Manager commands.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

AllCommandSet
Position:1
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-Noun

Specifies an array of nouns in Operations Manager cmdlet names.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CmdletSet
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Verb

Specifies an array of verbs in Operations Manager cmdlet names.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CmdletSet
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.