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

New-VM Multiple Hard Disks

$
0
0

Hello,

 

I am attempting to write a script that will recursively go through a folder and populate an array with hard disk paths.  Once the array is populated, create an appropriate number of VM's (i.e. less than 56, create a single VM, between 56 and 112, create two VM's, etc.) and attach the disks (non-persistent) appropriately.  I was hoping to be able to use the New-VM command line to do this all at once, but I'm having a hard time breaking the array out to work with a single command line, and adding the disks to an existing VM has also proven to be a bit more difficult than I had expected.

 

Does anyone have some guidance that could point me in the right direction?  Perhaps a snippet of a script that is designed to do something similar?

 

Thanks very much,

 

Mark


Viewing all articles
Browse latest Browse all 176483

Trending Articles



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