Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

Move VMs serially

$
0
0

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!


Viewing all articles
Browse latest Browse all 176483

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>