Get-SCOMCommand

Gets Operations Manager commands in the current session.

Syntax

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

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.

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.

Type:CommandTypes
Aliases:Type
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Name

Specifies an array of names of Operations Manager commands.

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

-Noun

Specifies an array of nouns in Operations Manager cmdlet names.

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

-Verb

Specifies an array of verbs in Operations Manager cmdlet names.

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