Pete Long
asked on
vMotion Script (move many VMs to ESXHost)
Quick question;
I know with PowerCLI I can vMotion a VM like so;
But if I have 'a lot' of vms to move in a CSV or a text file, how do I migrate them all at once, by importing the text/csv looping though it and moving each VM it finds in that file?
ThanQ
I know with PowerCLI I can vMotion a VM like so;
Get-VM VM1 | Move-VM -Destination (Get-VMHost ESXHost2)
orGet-VMHost ESXHost1 | Get-VM | Move-VM -Destination (Get-VMHost ESXHost2)
But if I have 'a lot' of vms to move in a CSV or a text file, how do I migrate them all at once, by importing the text/csv looping though it and moving each VM it finds in that file?
ThanQ
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You welcome!
ASKER