Resolve-SCOMAlert

Resolves an alert.

Syntax

Resolve-SCOMAlert [[-Comment] <String>] [[-CustomField9] <String>] [[-CustomField10] <String>]
 [[-Owner] <String>] [[-TicketId] <String>] [[-CustomField1] <String>] [[-CustomField2] <String>]
 [[-CustomField3] <String>] [[-CustomField4] <String>] [[-CustomField5] <String>] [[-CustomField6] <String>]
 [[-CustomField7] <String>] [[-CustomField8] <String>] -Alert <MonitoringAlert[]>
 [-Connector <MonitoringConnector>] [-PassThru] [-Confirm] [-WhatIf] [-TfsWorkItemId <String>]
 [-TfsWorkItemOwner <String>] [<CommonParameters>]

Description

The Resolve-SCOMAlert cmdlet resolves an alert in System Center 2016 - Operations Manager. The cmdlet sets the ResolutionState property of an alert to 255 (Closed). You can also resolve an alert by using the Set-SCOMAlert cmdlet and setting the ResolutionState parameter to 255 (Closed).

Examples

Example 1: Resolve error alerts by using the alert severity

PS C:\>Get-SCOMAlert -Severity 2 | Resolve-SCOMAlert -Comment "All alerts are resolved."

This command resolves all Error alerts and adds a comment to the resolved alerts.

Parameters

-Alert

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

Type:MonitoringAlert[]
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False
-Comment

Specifies a comment to add to the resolved alert.

Type:String
Required:False
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Connector

Specifies a MonitoringConnector object. This parameter specifies the connector that generated the connection string. To obtain a MonitoringConnector object, use the Get-SCOMConnector cmdlet.

Type:MonitoringConnector
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-CustomField1

Specifies information to add to the CustomField1 property of the alert.

Type:String
Required:False
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-CustomField10

Specifies information to add to the CustomField10 property of the alert.

Type:String
Required:False
Position:11
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-CustomField2

Specifies information to add to the CustomField2 property of the alert.

Type:String
Required:False
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-CustomField3

Specifies information to add to the CustomField3 property of the alert.

Type:String
Required:False
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-CustomField4

Specifies information to add to the CustomField4 property of the alert.

Type:String
Required:False
Position:5
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-CustomField5

Specifies information to add to the CustomField5 property of the alert.

Type:String
Required:False
Position:6
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-CustomField6

Specifies information to add to the CustomField6 property of the alert.

Type:String
Required:False
Position:7
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-CustomField7

Specifies information to add to the CustomField7 property of the alert.

Type:String
Required:False
Position:8
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-CustomField8

Specifies information to add to the CustomField8 property of the alert.

Type:String
Required:False
Position:9
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-CustomField9

Specifies information to add to the CustomField9 property of the alert.

Type:String
Required:False
Position:10
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Owner

Specifies the user name of the owner of the alert, in the format Domain\Account.

Type:String
Required:False
Position:13
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PassThru

Indicates that the cmdlet creates or modifies an object that a command can use in the pipeline. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-TicketId

Specifies the ticket ID of the alert.

Type:String
Required:False
Position:14
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-TfsWorkItemId
Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-TfsWorkItemOwner
Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False