Link to home
Start Free TrialLog in
Avatar of Pete Long
Pete LongFlag for United Kingdom of Great Britain and Northern Ireland

asked on

vMotion Script (move many VMs to ESXHost)

Quick question;

I know with PowerCLI I can vMotion a VM like so;
Get-VM VM1 | Move-VM -Destination (Get-VMHost ESXHost2)

Open in new window

or
Get-VMHost ESXHost1 | Get-VM | Move-VM -Destination (Get-VMHost ESXHost2)

Open in new window


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
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pete Long

ASKER

THANQ
You welcome!