PowerCLI Reference

Suspend-VMGuest

Synopsis

This cmdlet suspends the specified guest operating systems.

Syntax

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

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

Related Commands

Online Version
Get-VMGuest
Restart-VMGuest
Stop-VMGuest

Detailed Description

This cmdlet issues a command to the specified guest operating system asking it to prepare for a suspend operation.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
GuestVMGuest[]Specifies the guest operating systems you want to suspend.falseTrue (ByValue)
VMVirtualMachine[]Specifies the virtual machines whose operating systems you want to suspend. 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 suspended VMGuest objects

Notes

Examples

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

Get-VM VM| Suspend-VMGuest

Suspends the guest OS of the virtual machine named VM.


Copyright © VMware, Inc. All rights reserved.