Clear-WssAlert

Clear-WssAlert

Deletes an alert.

Syntax

Parameter Set: NameSet
Clear-WssAlert [-FeatureName] <String> [-HealthDefinitionName] <String> [[-MachineName] <String> ] [-PassThru] [ <CommonParameters>]

Parameter Set: AlertSet
Clear-WssAlert [-Alert] <Alert> [-PassThru] [ <CommonParameters>]

Detailed 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.

Parameters

-Alert<Alert>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-FeatureName<String>

Specifies the name of the feature associated with the alert.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-HealthDefinitionName<String>

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

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-MachineName<String>

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

Aliases

none

Required?

false

Position?

3

Default Value

none

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.

Aliases

none

Required?

false

Position?

named

Default Value

none

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: Delete an alert

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

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

Get-WssAlert

Enable-WssAlert

Disable-WssAlert

Repair-WssAlert

Enable-WssAlert