Get-SCOMOverride

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

Syntax

Get-SCOMOverride [[-Diagnostic] <ManagementPackDiagnostic[]>] [-Class <ManagementPackClass[]>]
 [-ComputerName <String[]>] [-Credential <PSCredential>] [-Group <EnterpriseManagementObject[]>]
 [-Instance <EnterpriseManagementObject[]>] [-SCSession <Connection[]>] [<CommonParameters>]
Get-SCOMOverride [[-Discovery] <ManagementPackDiscovery[]>] [-Class <ManagementPackClass[]>]
 [-ComputerName <String[]>] [-Credential <PSCredential>] [-Group <EnterpriseManagementObject[]>]
 [-Instance <EnterpriseManagementObject[]>] [-SCSession <Connection[]>] [<CommonParameters>]
Get-SCOMOverride [[-Monitor] <ManagementPackMonitor[]>] [-Class <ManagementPackClass[]>]
 [-ComputerName <String[]>] [-Credential <PSCredential>] [-Group <EnterpriseManagementObject[]>]
 [-Instance <EnterpriseManagementObject[]>] [-SCSession <Connection[]>] [<CommonParameters>]
Get-SCOMOverride [[-Recovery] <ManagementPackRecovery[]>] [-Class <ManagementPackClass[]>]
 [-ComputerName <String[]>] [-Credential <PSCredential>] [-Group <EnterpriseManagementObject[]>]
 [-Instance <EnterpriseManagementObject[]>] [-SCSession <Connection[]>] [<CommonParameters>]
Get-SCOMOverride [[-Rule] <ManagementPackRule[]>] [-Class <ManagementPackClass[]>] [-ComputerName <String[]>]
 [-Credential <PSCredential>] [-Group <EnterpriseManagementObject[]>]
 [-Instance <EnterpriseManagementObject[]>] [-SCSession <Connection[]>] [<CommonParameters>]
Get-SCOMOverride [[-Task] <ManagementPackTask[]>] [-Class <ManagementPackClass[]>] [-ComputerName <String[]>]
 [-Credential <PSCredential>] [-Group <EnterpriseManagementObject[]>]
 [-Instance <EnterpriseManagementObject[]>] [-SCSession <Connection[]>] [<CommonParameters>]

Description

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

Examples

Example 1: Retrieve all overrides for a set of rules

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

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.

Example 2: Retrieve all overrides for a specific class

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

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.

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

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

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.

Parameters

-Class

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

Type:ManagementPackClass[]
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ComputerName

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 (.).

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

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".

Type:PSCredential
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Diagnostic

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

Type:ManagementPackDiagnostic[]
Required:False
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Discovery

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

Type:ManagementPackDiscovery[]
Required:False
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Group

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

Type:EnterpriseManagementObject[]
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Instance

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".

Type:EnterpriseManagementObject[]
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Monitor

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

Type:ManagementPackMonitor[]
Required:False
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Recovery

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

Type:ManagementPackRecovery[]
Required:False
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Rule

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

Type:ManagementPackRule[]
Required:False
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-SCSession

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

Type:Connection[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Task

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

Type:ManagementPackTask[]
Required:False
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False