Enable-WssAlert

Enable-WssAlert

Enables an alert.

Syntax

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

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

Detailed Description

The Enable-WssAlert cmdlet enables an alert that you have disabled or ignored. Specify an alert object or specify the feature and health definition file associated with an 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 a computer.

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

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

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

Get-WssAlert

Disable-WssAlert

Clear-WssAlert

Repair-WssAlert

Enable-WssAlert