Hi Community,
How can I get all the VMs in a datastore and then storage vMotion them, one at a time, to a different datastore?
Here's what I tried, but it kicked off 8 svMotions at once- not what I want
$VmsInDatastore = get-datastore -name datastorename | get-vm
foreach ($vm in $VmsInDatastore) {move-vm -vm $vm -datastore destinationDatastore}
Thanks!