# Fault - InvalidPowerState(vim.fault.InvalidPowerState)

Thrown by
  AbortCustomization_Task, AcquireCredentialsInGuest, AddGuestAlias, ApplyEvcModeVM_Task, ChangeFileAttributesInGuest, CheckMigrate_Task, CloneVApp_Task, CreateRegistryKeyInGuest, CreateScreenshot_Task, CreateSnapshot_Task, CreateSnapshotEx_Task, CreateTemporaryDirectoryInGuest, CreateTemporaryFileInGuest, CustomizeGuest_Task, DefragmentAllDisks, DeleteDirectoryInGuest, DeleteFileInGuest, DeleteRegistryKeyInGuest, DeleteRegistryValueInGuest, DropConnections, ExportVApp, ExportVm, InitiateFileTransferFromGuest, InitiateFileTransferToGuest, ListFilesInGuest, ListGuestAliases, ListGuestMappedAliases, ListProcessesInGuest, ListRegistryKeysInGuest, ListRegistryValuesInGuest, MakeDirectoryInGuest, MarkAsTemplate, MigrateVM_Task, MoveDirectoryInGuest, MoveFileInGuest, PowerOffVApp_Task, PowerOffVM_Task, PowerOnVApp_Task, PowerOnVM_Task, PromoteDisks_Task, QueryConnections, ReadEnvironmentVariableInGuest, RebootGuest, ReconfigVM_Task, ReleaseCredentialsInGuest, reloadVirtualMachineFromPath_Task, RemoveAllSnapshots_Task, RemoveGuestAlias, RemoveGuestAliasByCert, RenameSnapshot, ResetVM_Task, RevertToCurrentSnapshot_Task, RevertToSnapshot_Task, SetDisplayTopology, SetRegistryValueInGuest, SetScreenResolution, ShutdownGuest, StandbyGuest, StartGuestNetwork_Task, StartProgramInGuest, StartRecording_Task, StartReplaying_Task, StopRecording_Task, StopReplaying_Task, SuspendVApp_Task, SuspendVM_Task, TerminateProcessInGuest, unregisterVApp_Task, UnregisterVM, UpdateVAppConfig, UpgradeVM_Task, ValidateCredentialsInGuest, ValidateMigration
Extends
  InvalidState
See also
  VirtualMachinePowerState
Since
  2.0

## Fault Description

This exception is thrown if the power operation attempted could not be performed given the current power state of the virtual machine.

Properties

Name | Type | Description
--- | --- | ---
existingState | VirtualMachinePowerState | Power state of the virtual machine that prevented the operation from succeeding.
requestedState* | VirtualMachinePowerState | Power state of the virtual machine required to allow the operation to succeed.
Properties inherited from InvalidState
None
Properties inherited from VimFault
None
Properties inherited from MethodFault
faultCause, faultMessage

*May not be present
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="InvalidPowerState"> <complexContent> <extension base="vslm:InvalidState"> <sequence> <element name="requestedState" type="vslm:VirtualMachinePowerState" minOccurs="0"/> <element name="existingState" type="vslm:VirtualMachinePowerState"/> </sequence> </extension> </complexContent> </complexType>