VMware Communities > Blogs > John Tuffin's Blog > 2008 > March

Blog Posts

John Tuffin's Blog : March 28, 2008

Previous Next

4

These two lines of Powershell script are all you need to VMotion all virtual machines from one ESX host to another:

Get-VIServer 10.18.138.187 -User "scriptuser" -Password "vmware"

Get-VMHost sc-gallium07 | Get-VM | Move-VM -Destination (*Get-vmhost* sc-gallium04)


If you have Powershell and the VI-toolkit installed on a Windows box you run this little script and you have just scripted a VMotion.

4 Comments Permalink