得到一个VMM机器所有的节点状态
Quick one-liner to generate a CSV of virtual machines, sorted by their hosts. Report will include Host Name, VM Name, VM Hostname, Status, Action on host stop, and Action on host start.
Get-VM -VMMServer X.X.X.X| Sort-Object Hostname | Select-Object HostName, Name, ComputerName, Status,Location| Export-Csv d:\vm\vm-list.csv -NoTypeInformation |