Enable-WssAlert

Enable-WssAlert

Enables an alert.

Sintaxis

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

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

Descripción detallada

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.

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 a computer.

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.

  • System.String,System.String

Salidas

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

Ejemplos

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"

Temas relacionados

Get-WssAlert

Disable-WssAlert

Clear-WssAlert

Repair-WssAlert