Reply to Message

View discussion in a popup

Replying to:
justinsmith
Enthusiast
Enthusiast

That might do it LucD, I just didnt want to throttle vCenter's resources with 40+ svMotions and not be able to do any other work until those are done. How would I integrate this code with the one below?

$filepath = "D:\PathtoCSV\filename.csv

$csvobj = import-csv $filepath

foreach ($row in $csvobj) {

     $vmobj = get-vm $row.vmname

     $ds = get-datastore $row.destds

     $vmobj | move-vm -datastore $ds -confirm:$false

     }

Reply
0 Kudos