Resolve-SCOMAlert

Resolve-SCOMAlert

Resolves an alert.

Syntax

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

Detailed Description

The Resolve-SCOMAlert cmdlet resolves an alert in System Center 2012 – 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).

Parameters

-Alert<MonitoringAlert[]>

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

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Comment<String>

Specifies a comment to add to the resolved alert.

Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Connector<MonitoringConnector>

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-CustomField1<String>

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

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-CustomField10<String>

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

Aliases

none

Required?

false

Position?

11

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-CustomField2<String>

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

Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-CustomField3<String>

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

Aliases

none

Required?

false

Position?

4

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-CustomField4<String>

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

Aliases

none

Required?

false

Position?

5

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-CustomField5<String>

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

Aliases

none

Required?

false

Position?

6

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-CustomField6<String>

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

Aliases

none

Required?

false

Position?

7

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-CustomField7<String>

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

Aliases

none

Required?

false

Position?

8

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-CustomField8<String>

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

Aliases

none

Required?

false

Position?

9

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-CustomField9<String>

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

Aliases

none

Required?

false

Position?

10

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Owner<String>

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

Aliases

none

Required?

false

Position?

13

Default Value

none

Accept Pipeline Input?

true (ByValue, 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.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-TicketId<String>

Specifies the ticket ID of the alert.

Aliases

none

Required?

false

Position?

14

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

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.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Resolve error alerts by using the alert severity

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

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

Get-SCOMAlert

Set-SCOMAlert