Enable-WssAlert

Enable-WssAlert

Enables an alert.

構文

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

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

詳細説明

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.

パラメーター

-Alert<Alert>

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

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-FeatureName<String>

Specifies the name of the feature associated with the alert.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-HealthDefinitionName<String>

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

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-MachineName<String>

Specifies the name of a computer.

エイリアス

なし

必須?

false

位置は?

3

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • System.String,System.String

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

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"

関連トピック

Get-WssAlert

Disable-WssAlert

Clear-WssAlert

Repair-WssAlert