Get-SCOMOverride

Get-SCOMOverride

Retrieves a list of overrides or a resulting set of overrides.

構文

Parameter Set: Empty
Get-SCOMOverride [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromManagementPackDiagnostic
Get-SCOMOverride [[-Diagnostic] <ManagementPackDiagnostic[]> ] [-Class <ManagementPackClass[]> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-Group <EnterpriseManagementObject[]> ] [-Instance <EnterpriseManagementObject[]> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromManagementPackDiscovery
Get-SCOMOverride [[-Discovery] <ManagementPackDiscovery[]> ] [-Class <ManagementPackClass[]> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-Group <EnterpriseManagementObject[]> ] [-Instance <EnterpriseManagementObject[]> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromManagementPackMonitor
Get-SCOMOverride [[-Monitor] <ManagementPackMonitor[]> ] [-Class <ManagementPackClass[]> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-Group <EnterpriseManagementObject[]> ] [-Instance <EnterpriseManagementObject[]> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromManagementPackRecovery
Get-SCOMOverride [[-Recovery] <ManagementPackRecovery[]> ] [-Class <ManagementPackClass[]> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-Group <EnterpriseManagementObject[]> ] [-Instance <EnterpriseManagementObject[]> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromManagementPackRule
Get-SCOMOverride [[-Rule] <ManagementPackRule[]> ] [-Class <ManagementPackClass[]> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-Group <EnterpriseManagementObject[]> ] [-Instance <EnterpriseManagementObject[]> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Parameter Set: FromTask
Get-SCOMOverride [[-Task] <ManagementPackTask[]> ] [-Class <ManagementPackClass[]> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-Group <EnterpriseManagementObject[]> ] [-Instance <EnterpriseManagementObject[]> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

詳細説明

The Get-SCOMOverride cmdlet retrieves a list of overrides, or a resulting set of overrides. In System Center 2012 – Operations Manager, overrides represent changes to parameters in monitors.

パラメーター

-Class<ManagementPackClass[]>

Specifies an array of class objects. For more information, type Get-Help Get-SCOMClass.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByValue)

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

false

-ComputerName<String[]>

Specifies an array of names of computers. The cmdlet establishes temporary connections with management groups for these computers. You can use NetBIOS names, IP addresses, or fully qualified domain names (FQDNs). To specify the local computer, type the computer name, localhost, or a dot (.).

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByValue)

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

false

-Credential<PSCredential>

Specifies a PSCredential object for the management group connection. To obtain a PSCredential object, use the Get-Credential cmdlet. For more information, type "Get-Help Get-Credential".

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByValue)

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

false

-Diagnostic<ManagementPackDiagnostic[]>

Specifies an array of diagnostic objects. For more information about how to get a diagnostic object, type "Get-Help Get-SCOMDiagnostic".

エイリアス

なし

必須?

false

位置は?

1

既定値

なし

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

true (ByValue)

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

false

-Discovery<ManagementPackDiscovery[]>

Specifies an array of discovery objects. For more information about how to get a discovery object, type "Get-Help Get-SCOMDiscovery".

エイリアス

なし

必須?

false

位置は?

1

既定値

なし

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

true (ByValue)

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

false

-Group<EnterpriseManagementObject[]>

Specifies an array of group objects. For more information about how to get a group object, type "Get-Help Get-SCOMGroup".

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByValue)

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

false

-Instance<EnterpriseManagementObject[]>

Specifies an array of class instance objects. This parameter also accepts group objects. For more information about how to get a class instance object, type "Get-Help Get-SCOMClassInstance".

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByValue)

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

false

-Monitor<ManagementPackMonitor[]>

Specifies an array of monitor objects. For more information about how to get a monitor object, type "Get-Help Get-SCOMMonitor".

エイリアス

なし

必須?

false

位置は?

1

既定値

なし

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

true (ByValue)

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

false

-Recovery<ManagementPackRecovery[]>

Specifies an array of recovery objects. For more information about how to get a recovery object, type "Get-Help Get-SCOMRecovery".

エイリアス

なし

必須?

false

位置は?

1

既定値

なし

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

true (ByValue)

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

false

-Rule<ManagementPackRule[]>

Specifies an array of monitoring rule objects. For more information about how to get a monitoring rule object, type "Get-Help Get-SCOMRule".

エイリアス

なし

必須?

false

位置は?

1

既定値

なし

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

true (ByValue)

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

false

-SCSession<Connection[]>

Specifies an array of Connection objects. To obtain a Connection object, use the Get-SCManagementGroupConnection cmdlet.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByValue)

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

false

-Task<ManagementPackTask[]>

Specifies an array of task objects. For more information about how to get a task object, type "Get-Help Get-SCOMTask".

エイリアス

なし

必須?

false

位置は?

1

既定値

なし

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

true (ByValue)

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

false

<CommonParameters>

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

入力

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

出力

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

Example 1: Retrieve all overrides for a set of rules

This example gets all monitoring rules that contain the word health in their name, and then returns the overrides for the rule objects.

Using the ErrorAction parameter with the SilentlyContinue value allows the command to continue if it cannot find an override for a specific monitoring rule, and will not display an error.

PS C:\> Get-SCOMRule -Name "*health*" | Get-SCOMOverride -ErrorAction SilentlyContinue

Example 2: Retrieve all overrides for a specific class

This command gets the override for monitors that contain the word health in their name and are in a class with a display name that contains the word computer.

PS C:\> Get-SCOMOverride -Monitor (Get-SCOMMonitor -Name "*health*") -Class (Get-SCOMClass -DisplayName "*computer*")

Example 3: Retrieve all overrides for a set of discovery objects

This command gets all discoveries that contain system in their name, and then returns the overrides for those discovery objects.

Using the ErrorAction parameter with the SilentlyContinue value allows the command to continue if it cannot find an override for a specific discovery, and will not display an error.

PS C:\> Get-SCOMDiscovery -Name "*system*" | Get-SCOMOverride -ErrorAction SilentlyContinue

関連トピック

Get-SCOMClass

Get-SCOMClassInstance

Get-SCOMDiscovery

Get-SCOMGroup

Get-SCOMDiagnostic

Get-SCOMMonitor

Get-SCOMRecovery

Get-SCOMRule

Get-SCOMTask