Get-SCOMOverride

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

Syntax

Get-SCOMOverride
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMOverride
   [-Class <ManagementPackClass[]>]
   [-Instance <EnterpriseManagementObject[]>]
   [-Group <EnterpriseManagementObject[]>]
   [[-Task] <ManagementPackTask[]>]
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMOverride
   [-Class <ManagementPackClass[]>]
   [-Instance <EnterpriseManagementObject[]>]
   [-Group <EnterpriseManagementObject[]>]
   [[-Discovery] <ManagementPackDiscovery[]>]
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMOverride
   [-Class <ManagementPackClass[]>]
   [-Instance <EnterpriseManagementObject[]>]
   [-Group <EnterpriseManagementObject[]>]
   [[-Monitor] <ManagementPackMonitor[]>]
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMOverride
   [-Class <ManagementPackClass[]>]
   [-Instance <EnterpriseManagementObject[]>]
   [-Group <EnterpriseManagementObject[]>]
   [[-Recovery] <ManagementPackRecovery[]>]
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMOverride
   [-Class <ManagementPackClass[]>]
   [-Instance <EnterpriseManagementObject[]>]
   [-Group <EnterpriseManagementObject[]>]
   [[-Rule] <ManagementPackRule[]>]
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCOMOverride
   [-Class <ManagementPackClass[]>]
   [-Instance <EnterpriseManagementObject[]>]
   [-Group <EnterpriseManagementObject[]>]
   [[-Diagnostic] <ManagementPackDiagnostic[]>]
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<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[]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
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[]
Position:Named
Default value:None
Required:False
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
Position:Named
Default value:None
Required:False
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[]
Position:1
Default value:None
Required:False
Accept pipeline input:True
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[]
Position:1
Default value:None
Required:False
Accept pipeline input:True
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[]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
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[]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
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[]
Position:1
Default value:None
Required:False
Accept pipeline input:True
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[]
Position:1
Default value:None
Required:False
Accept pipeline input:True
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[]
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-SCSession

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

Type:Connection[]
Position:Named
Default value:None
Required:False
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[]
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False