次の方法で共有


Restart-HcsController

Restart-HcsController

Restarts a controller.

構文

Parameter Set: Default
Restart-HcsController [-ControllerId <ControllerIds> ] [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Restart-HcsController cmdlet restarts a controller. If you run the cmdlet without any parameters, it restarts the current controller. The current controller is the controller where you run the cmdlet. You can use the ControllerID parameter to specify a different controller to restart.

パラメーター

-ControllerId<ControllerIds>

Specifies controller0 or controller1.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-Force

ユーザーの確認を求めずにコマンドを強制的に実行します。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

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

false

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

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

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

false

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

false

<CommonParameters>

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

入力

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

出力

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

Example 1: Restart a controller

This command restarts the controller specified by the ControllerID parameter. In this example, controller0 is the standby controller.

PS C:\> Restart-HcsController -ControllerId 0

Example 2: Restart the current controller

This command restarts the current controller. In this example, the controller is the active controller. The current controller does not have to be the active controller.

PS C:\> Restart-HcsController

関連トピック

Stop-HcsController