Try the above command the command Get-VM get's all virtual machines on host sc-gallium07 and sends them all to sc-gallium04 so in your case you might try get-vmhost ESX01 | Get-VM | Move-VM -Destination (Get-vmhost ESX02) That command should send them all. make sure you have Powershell installed and that you have installed the VMware VI Toolkit for Windows. (Currently the toolkit is in Beta)
Fantastic! Thank you. Just tried it and it works. Documentation showed <VIContainer> and I didn't know what they meant by it. You just clarified it for me. WOW... Powershell rocks! Just saved me hour of clicking! ![]()
Thx again
I'm trying to vmotion all guest systems hosted on an "ESX01" to another "ESX02" for maintenance. Can you suggest what would be the commandline for this? Thxs.