## PowerCLI Reference

# VirtualMachine - Object

Property of
  VMStartPolicy, VMGuestRoute, Snapshot, VMResourceConfiguration, PciPassthroughDevice, DrsClusterVMGroup, SdrsVMAntiAffinityRule, VMScriptResult, ScsiPassthroughDevice, VMGuestNetworkInterface, VMQuestion, PassthroughDevice, VMGuest

Parameter to
  Get-ResourcePool, Get-FloppyDrive, Get-VMResourceConfiguration, Get-PassthroughDevice, Export-VApp, Get-CDDrive, Get-Datacenter, Get-Cluster, Get-VMGuest, Remove-VM, Get-VMHost, Get-UsbDevice, Stop-VM, Mount-Tools, New-CDDrive, Restart-VMGuest, Set-HardDisk, Set-VM, New-VM, Get-HardDisk, Get-NetworkAdapter, Update-Tools, Get-VMStartPolicy, Dismount-Tools, Copy-VMGuestFile, Set-DrsRule, New-HardDisk, New-FloppyDrive, Get-VMGuestRoute, Get-DrsRule, Move-VM, New-NetworkAdapter, Add-PassthroughDevice, Start-VM, Get-Snapshot, Get-VMQuestion, New-Template, Restart-VM, Get-VirtualSwitch, Invoke-VMScript, Get-VirtualPortGroup, Suspend-VM, New-Snapshot, New-DrsRule, Get-VMGuestNetworkInterface, Suspend-VMGuest, Stop-VMGuest, New-VMGuestRoute, Wait-Tools, Get-ScsiController, Get-DatastoreCluster, Get-DrsClusterGroup, New-DrsClusterGroup, Set-DrsClusterGroup

Returned by
  Get-VM, New-VM, Start-VM, Stop-VM, Wait-Tools, Import-VApp, Set-VM, Move-VM, Restart-VM, Suspend-VM

Extends
  InventoryItem, DatastoreUser, DatastoreRelatedObjectBase, RemoteConsoleVM

Properties

Name | Type | Notes
--- | --- | ---
PowerState | PowerState |
Version | VMVersion |
Description | String | Deprecated. As of PowerCLI 5.0 use Notes property instead.
Notes | String |
Guest | VMGuest |
NumCpu | Int32 |
MemoryMB | Decimal |
HardDisks | HardDisk[] | Deprecated. As of PowerCLI 5.0 use Get-HardDisk cmdlet instead.
NetworkAdapters | NetworkAdapter[] | Deprecated. As of PowerCLI 5.0 use Get-NetworkAdapter cmdlet instead.
UsbDevices | UsbDevice[] | Deprecated. As of PowerCLI 5.0 use Get-UsbDevice cmdlet instead.
CDDrives | CDDrive[] | Deprecated. As of PowerCLI 5.0 use Get-CDDrive cmdlet instead.
FloppyDrives | FloppyDrive[] | Deprecated. As of PowerCLI 5.0 use Get-FloppyDrive cmdlet instead.
Host | VMHost | Deprecated. As of PowerCLI 5.0 use VMHost property instead.
HostId | String | Deprecated. As of PowerCLI 5.0 use VMHostId property instead.
VMHostId | String |
VMHost | VMHost |
VApp | VApp |
FolderId | String |
Folder | Folder |
ResourcePoolId | String |
ResourcePool | ResourcePool |
PersistentId | string |
UsedSpaceGB | Decimal |
ProvisionedSpaceGB | Decimal |
HARestartPriority | HARestartPriority? |
HAIsolationResponse | HAIsolationResponse? |
DrsAutomationLevel | DrsAutomationLevel? |
VMSwapfilePolicy | VMSwapfilePolicy? |
VMResourceConfiguration | VMResourceConfiguration |
MemoryGB | Decimal |
GuestId | String |
CoresPerSocket | Int32 |
Properties inherited from DatastoreUser
DatastoreIdList
Properties inherited from InventoryItem
CustomFields, ExtensionData, Id, Name, Uid, Client

Copyright © VMware, Inc. All rights reserved.