Update SetupVM.ps1

This commit is contained in:
James Stringer 2021-06-24 14:32:10 +02:00 committed by GitHub
parent fbf11ba33e
commit 6600389ff7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ param(
[string]$VMName = "GPU-P",
[int64]$MemoryAmount = 8GB,
[int]$CPUCores = 4,
[string]$WindowsISOPath = "C:\Users\james\Downloads\Windows10_InsiderPreview_Client_x64_en-us_21354.iso"
[string]$WindowsISOPath = ""
)
New-vhd -SizeBytes $HDDSize -Path "C:\Users\Public\Documents\Hyper-V\Virtual hard disks\$VMName.vhdx" -Dynamic
New-VM -Name $VMName -MemoryStartupBytes $MemoryAmount -VHDPath "C:\Users\Public\Documents\Hyper-V\Virtual hard disks\$VMName.vhdx" -Generation 2 -SwitchName "Default Switch"