Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

Get-SCOMCommand

Updated: October 2, 2015

Get-SCOMCommand

Gets Operations Manager commands in the current session.

Syntax

Parameter Set: CmdletSet
Get-SCOMCommand [-Noun <String[]> ] [-Verb <String[]> ] [ <CommonParameters>]

Parameter Set: AllCommandSet
Get-SCOMCommand [[-Name] <String[]> ] [-CommandType <CommandTypes> {Alias | Function | Filter | Cmdlet | ExternalScript | Application | Script | Workflow | Configuration | All} ] [ <CommonParameters>]




Detailed Description

The Get-SCOMCommand cmdlet gets System Center 2016 – 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.

Parameters

-CommandType<CommandTypes>

Specifies a Operations Manager command type.


Aliases

Type

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String[]>

Specifies an array of names of Operations Manager commands.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Noun<String[]>

Specifies an array of nouns in Operations Manager cmdlet names.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Verb<String[]>

Specifies an array of verbs in Operations Manager cmdlet names.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

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

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get commands by using a name

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


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

Example 2: Get commands by using a cmdlet verb

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


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

Related topics

Community Additions

ADD
Show:
© 2016 Microsoft