Clear-WssAlert

Deletes an alert.

Syntax

Clear-WssAlert
     [-FeatureName] <String>
     [-HealthDefinitionName] <String>
     [[-MachineName] <String>]
     [-PassThru]
Clear-WssAlert
     [-Alert] <Alert>
     [-PassThru]

Description

The Clear-WssAlert cmdlet deletes an alert from the server at the next network health evaluation cycle. If you delete an alert and the server detects the problem again in the health evaluation cycle, it generates a new alert. By default, the server refreshes alerts every thirty minutes.

Examples

Example 1: Delete an alert

PS C:\> Clear-WssAlert -FeatureName "MicrosoftServicing" -HealthDefinitionName "MUOptIn"

This command deletes the alert associated with the feature named MicrosoftServicing and the health definition named MUOptIn.

Parameters

-Alert

Specifies a WssAlert object. To obtain a WssAlert object, use the Get-WssAlert cmdlet.

Type:Alert
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-FeatureName

Specifies the name of the feature associated with the alert.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-HealthDefinitionName

Specifies the name of the health definition associated with the alert.

Type:String
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-MachineName

Specifies the name of the computer on which the server generated the alert.

Type:String
Position:3
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False