Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 176561

New-Harddisk help

$
0
0

Hello,

 

I am looking to add the additional hard disk option when create a new VM. I have used the below

 

$addition = Read-Host "Y/N"

 

If ($addition -eq "Y") {

$disk2 = Read-Host etc...} # enter amount in GB for additional disk

 

otherwise if "n" it will just continue.

 

For the New-VM part of the script, i have added the same as the above

 

If ($addition -eq "Y") {

New-HardDisk -VM

 

What would be the correct parameters to create a basic additional disk as im not sure how much it needs, and is there a better way to do this?

 

Thanks


Viewing all articles
Browse latest Browse all 176561

Trending Articles



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