Create VMs via Powershell

From ToWaSo
Revision as of 18:52, 20 June 2021 by Tobias (talk | contribs) (Created page with "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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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