Clear-WssAlert

Clear-WssAlert

Deletes an alert.

構文

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

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

詳細説明

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.

パラメーター

-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 the computer on which the server generated the alert.

エイリアス

なし

必須?

false

位置は?

3

既定値

なし

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

false

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

false

-PassThru

作業中の項目を表すオブジェクトを返します。既定では、このコマンドレットによる出力はありません。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

<CommonParameters>

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

入力

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

  • Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework.Alert

    Description: alert object

出力

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

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"

関連トピック

Get-WssAlert

Enable-WssAlert

Disable-WssAlert

Repair-WssAlert