Powercli: Getting details of VM in a host/vCenter

By | 18th June 2013

1. Connect the to the server/vc : Connect-VIServer -server

2.List the parameters for which we need the information. e.g. HardDisks,PowerState,host Get-VM | Format-List name,HardDisks,PowerState,host

HardDisks                                                                      : {Hard disk 1}
CDDrives                                                                       : {CD/DVD drive 1}
FloppyDrives                                                                   : {Floppy drive 1}
NetworkAdapters                                                                : {Network adapter 1, Network adapter 2}
UsbDevices                                                                     : {}
Host                                                                           :  mycloudtick1.com
Id                                                                             : VirtualMachine-vm-427
Notes                                                                          :
Name                                                                           : vCenter 5.1
PowerState                                                                     : PoweredOn
NumCpu                                                                         : 2
“{0:N3}” -f $_.MemoryGB                         : 8.000

Leave a Reply

Your email address will not be published. Required fields are marked *