Disable-WssAlert

Disable-WssAlert

Disables and ignores an alert.

Sintaxis

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

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

Descripción detallada

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.

Parámetros

-Alert<Alert>

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

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-FeatureName<String>

Specifies the name of the feature associated with the alert.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-HealthDefinitionName<String>

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

Alias

ninguno

¿Requerido?

true

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-MachineName<String>

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

Alias

ninguno

¿Requerido?

false

¿Posición?

3

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework.Alert

    Description: alert

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

Ejemplos

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"

Temas relacionados

Get-WssAlert

Enable-WssAlert

Clear-WssAlert

Repair-WssAlert

Enable-WssAlert