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?