Clear-WssAlert

Clear-WssAlert

Deletes an alert.

Sintaxis

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

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

Descripción detallada

The Clear-WssAlert cmdlet deletes an alert from the server at the next network health evaluation cycle. If you delete an alert and the server detects the problem again in the health evaluation cycle, it generates a new alert. By default, the server refreshes alerts every thirty minutes.

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

-PassThru

Devuelve un objeto que representa el elemento con el que está trabajando. De forma predeterminada, este cmdlet no genera ningún resultado.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

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 object

Salidas

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

Ejemplos

Example 1: Delete an alert

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

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

Temas relacionados

Get-WssAlert

Enable-WssAlert

Disable-WssAlert

Repair-WssAlert