PowerCLI Reference



This cmdlet shuts down the specified virtual machine guest OS.


Stop-VMGuest [[-VM] <VirtualMachine[]>] [[-Server] <VIServer[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Stop-VMGuest [[-Guest] <VMGuest[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version

Detailed Description

This cmdlet issues a command to the guest operating system asking it to prepare for a shutdown operation. Returns immediately and does not wait for the guest operating system to complete the operation.


NameTypeDescriptionRequired?Pipeline InputDefault Value
GuestVMGuest[]Specifies the virtual machine guests you want to shut down.falsetrue (ByValue)
VMVirtualMachine[]Specifies the virtual machines whose operating systems you want to shut down. The virtual machines must have VMware Tools installed.falsetrue (ByValue)
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falsefalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type

Zero or more shutdown VMGuest objects



-------------- Example 1 --------------

Get-VM VM | Stop-VMGuest

Shuts down the guest OS of the virtual machine named VM.

Copyright © VMware, Inc. All rights reserved.