powercli 取vm-name,vmhost-name,vm-ip-addr

參考來源:
https://communities.vmware.com/thread/457269
http://www.spug.co.uk/?p=259
https://communities.vmware.com/message/2251442

 

get-vm|select name,vmhost,@{N="IP Address";E={@($_.guest.IPAddress)}} |export-csv  -Path c:\VMsAndHostsInfo.csv
Facebook Comments Box

Leave a Reply