Create VMs via Powershell
Jump to navigation
Jump to search
Input parameter: PrefixName, TemplateVHDFolder
New-VMSwitch -name PrivateSwitch -SwitchType Private
Create VMs based on VHDs (copy the VHDs and create a VM with it)
New-VM -Name <Name> -MemoryStartupBytes <Memory> -BootDevice <BootDevice> -VHDPath <VHDPath> -Path <Path> -Generation <Generation> -Switch <SwitchName>
Start-VM -Name Win10VM