Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 214415

Re: Help with adding multiple virtual disks to an existing vm

$
0
0

Hello, -

 

As you seem to know, the New-HardDisk cmdlet does not itself allow for adding multiple harddisks in one call.  You could use a Foreach-Object call to add X number of harddisks to a VM, if that would be of help/interest.  Something like:

 

1,3 | %{New-HardDisk-VMmyVM0-CapacityGB$_-DatastoremyDstore0}

 

That fits the "single line" desire, but, about in the same way that having two New-HardDisk calls separated by ";" does.  So, potentially not super helpful, but -- how does that do for you?


Viewing all articles
Browse latest Browse all 214415

Trending Articles



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