I have looked around without success for a list of all the properties of a VM I can query with Get-View cmdlet. Here is a sample script of some of the things I know about.
Get-VM | Sort-Object -Property Name |
Get-View -Property @("Name", "Config.GuestFullName", "Guest.GuestFullName", "Config.Hardware.MemoryMB", "Config.hardware.NumCPU", "Guest.Hostname") |
Select -Property Name,
@{N="Configured OS";E={$_.Config.GuestFullName}},
@{N="Running OS";E={$_.Guest.GuestFullName}},
@{N="Configured Mem";E={$_.Config.Hardware.MemoryMB}},
@{N="Num Configured CPU";E={$_.Config.hardware.NumCPU}},
@{N="DnsName"; E={$_.Guest.Hostname}}|
What else is there?
Michael