Clear-WssAlert
Deletes an alert.
Clear-WssAlert
[-PassThru]
[-FeatureName] <String>
[-HealthDefinitionName] <String>
[[-MachineName] <String>]
[<CommonParameters>]
Clear-WssAlert
[-PassThru]
[-Alert] <Alert>
[<CommonParameters>]
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.
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.
Specifies a WssAlert object. To obtain a WssAlert object, use the Get-WssAlert cmdlet.
Type: | Alert |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the name of the feature associated with the alert.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the name of the health definition associated with the alert.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the name of the computer on which the server generated the alert.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
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 |
Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework.Alert
Description: alert object