Editar

Stop-HcsController

Stops a controller.

Syntax

Stop-HcsController
    [-ControllerId <ControllerIds>]
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Stop-HcsController cmdlet stops a controller. If you run the cmdlet without any parameters, it stops 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 stop.

Examples

Example 1: Stop a controller

PS C:\> Stop-HcsController -ControllerId Controller1
Checking device state...

This command will shut down your standby controller.  To power up the 
controller again, you will need to push the power button on the controller. 
Are you sure you want to continue with this operation?
[Y] Yes  [N] No  [?] Help (default is "Y"): y

This command stops the controller specified by the ControllerID parameter.

Example 2: Restart a controller

PS C:\> Stop-HcsController

Checking device state...

This command will shut down your standby controller. To power up the 
controller again, you will need to push the power button on the controller. 
Are you sure you want to continue with this operation?
[Y] Yes  [N] No  [?] Help (default is "Y"): y

This command restarts the current controller. In this example, the command restarts the standby controller.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ControllerId

Specifies controller0 or controller1.

Type:ControllerIds
Accepted values:Controller0, Controller1
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False