Disable-WssAlert

Disables and ignores an alert.

Syntax

Disable-WssAlert
       [-FeatureName] <String>
       [-HealthDefinitionName] <String>
       [[-MachineName] <String>]
       [<CommonParameters>]
Disable-WssAlert
       [-Alert] <Alert>
       [<CommonParameters>]

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.

Examples

Example 1: Disable an alert

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

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

Parameters

-Alert

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

-FeatureName

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

-HealthDefinitionName

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

-MachineName

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

Inputs

Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework.Alert

Description: alert