Get-SCOMCommand

Get-SCOMCommand

Gets Operations Manager commands in the current session.

構文

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

Parameter Set: AllCommandSet
Get-SCOMCommand [[-Name] <String[]> ] [-CommandType <CommandTypes> ] [ <CommonParameters>]

詳細説明

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

パラメーター

-CommandType<CommandTypes>

Specifies a Operations Manager command type.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByPropertyName)

ワイルドカード文字を許可する

false

-Name<String[]>

Specifies an array of names of Operations Manager commands.

エイリアス

なし

必須?

false

位置は?

1

既定値

なし

パイプライン入力を許可する

true (ByValue, ByPropertyName)

ワイルドカード文字を許可する

false

-Noun<String[]>

Specifies an array of nouns in Operations Manager cmdlet names.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByPropertyName)

ワイルドカード文字を許可する

false

-Verb<String[]>

Specifies an array of verbs in Operations Manager cmdlet names.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByPropertyName)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

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"

関連トピック

Write-SCOMCommand