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

Re: new-hardisk cmdlet

$
0
0

You cannot create two hard disks in one command. You will have to use at least two commands. In PowerShell 5.1 Release 2 the New-HardDisk cmdlet has a CapacityGB parameter. So you can use:

 

$vm=Get-VM-Name$displayname$vm | New-HardDisk-CapacityGB10$vm | New-HardDisk-CapacityGB5

Viewing all articles
Browse latest Browse all 240675

Trending Articles



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