Disable-WssAlert

Disable-WssAlert

Disables and ignores an alert.

Syntax

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

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

Detailed Description

The Disable-WssAlert cmdlet disables and ignores an alert. When you disable and ignore an alert, the alert becomes inactive and the server does not include the alert in the overall health assessment of the computer in the network. Use the Enable-WssAlert cmdlet to activate 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 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: Disable an alert

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

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

Get-WssAlert

Enable-WssAlert

Clear-WssAlert

Repair-WssAlert

Enable-WssAlert