Thank You!!
I made a small modification....
Get-View -ViewType VirtualMachine -Property 'Name','Config.Hardware','Guest','Runtime' ,'Config.GuestFullName'|
Sort-Object |Select -Property Name,@{N='NumCpu';E={$_.Config.Hardware.NumCPU}},@{N='MemoryMB';E={[math]::Round($_.Config.Hardware.MemoryMB/1KB,1)}},
@{N='PowerState';E={$_.RunTime.PowerState}}, @{N='IP';E={$_.Guest.IpAddress}}, @{N="OS_Configurado";E={$_.Config.GuestFullName}},
@{N="Running OS";E={$_.Guest.GuestFullName}} |Format-Table -AutoSize
question, how could the VMHost or the Esxi to which the VM belongs in this query add to the result?
Thank you