Repair-WssAlert

Repair-WssAlert

Repairs an alert.

Syntax

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

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

Detailed Description

The Repair-WssAlert cmdlet runs the repair task for an alert. Specify an alert object or specify the feature and health definition file associated with the alert.

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

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

This command runs the repair task for the alert associated with the feature named MicrosoftServicing and the health definition named MUOptIn.

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

Get-WssAlert

Enable-WssAlert

Disable-WssAlert

Clear-WssAlert

Enable-WssAlert