Resolve-SCOMAlert
Resolves an alert.
Syntax
Resolve-SCOMAlert
-Alert <MonitoringAlert[]>
[-Connector <MonitoringConnector>]
[[-CustomField1] <String>]
[[-CustomField2] <String>]
[[-CustomField3] <String>]
[[-CustomField4] <String>]
[[-CustomField5] <String>]
[[-CustomField6] <String>]
[[-CustomField7] <String>]
[[-CustomField8] <String>]
[[-CustomField9] <String>]
[[-CustomField10] <String>]
[[-Owner] <String>]
[[-TicketId] <String>]
[-TfsWorkItemId <String>]
[-TfsWorkItemOwner <String>]
[[-Comment] <String>]
[-PassThru]
[-WhatIf]
[-Confirm]
[<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[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Comment
Specifies a comment to add to the resolved alert.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
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 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-CustomField1
Specifies information to add to the CustomField1 property of the alert.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-CustomField10
Specifies information to add to the CustomField10 property of the alert.
Type: | String |
Position: | 11 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-CustomField2
Specifies information to add to the CustomField2 property of the alert.
Type: | String |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-CustomField3
Specifies information to add to the CustomField3 property of the alert.
Type: | String |
Position: | 4 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-CustomField4
Specifies information to add to the CustomField4 property of the alert.
Type: | String |
Position: | 5 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-CustomField5
Specifies information to add to the CustomField5 property of the alert.
Type: | String |
Position: | 6 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-CustomField6
Specifies information to add to the CustomField6 property of the alert.
Type: | String |
Position: | 7 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-CustomField7
Specifies information to add to the CustomField7 property of the alert.
Type: | String |
Position: | 8 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-CustomField8
Specifies information to add to the CustomField8 property of the alert.
Type: | String |
Position: | 9 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-CustomField9
Specifies information to add to the CustomField9 property of the alert.
Type: | String |
Position: | 10 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Owner
Specifies the user name of the owner of the alert, in the format Domain\Account.
Type: | String |
Position: | 13 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
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 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-TfsWorkItemId
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-TfsWorkItemOwner
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-TicketId
Specifies the ticket ID of the alert.
Type: | String |
Position: | 14 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |