CmdID / PowerShell / Cmdlets / New
New-VM
Creates a new virtual machine. Windows Server PowerShell reference
From the Windows Server PowerShell reference 22 parameters Its page in the reference
Parameters
Show its 22 parameters
-AsJobRuns the cmdlet as a background job.-BootDeviceSpecifies the device to use as the boot device for the new virtual machine.-CimSessionRuns the cmdlet in a remote session or on a remote computer.-ComputerNameSpecifies one or more Hyper-V hosts on which the virtual machine is to be created.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CredentialSpecifies one or more user accounts that have permission to perform this action.-ExperimentalSpecific prerelease VM version 255.0.-ForceForces the command to run without asking for user confirmation.-GenerationSpecifies the generation, as an integer, for the virtual machine.-GuestStateIsolationTypeSpecifies the level of isolation for the virtual machine being created.-MemoryStartupBytesSpecifies the amount of memory, in bytes, to assign to the virtual machine.-Name, -VMNameSpecifies the name of the new virtual machine.-NewVHDPathCreates a new virtual hard disk with the specified path and connects it to the new virtual machine.-NewVHDSizeBytesSpecifies the size of the dynamic virtual hard disk that is created and attached to the new virtual machine.-NoVHDCreates a virtual machine without attaching any virtual hard disks.-PathSpecifies the directory to store the files for the new virtual machine.-PrereleaseSpecific prerelease VM version 254.0.-SourceGuestStatePathSpecifies the path to the guest state file for the virtual machine being created.-SwitchNameSpecifies the friendly name of the virtual switch if you want to connect the new virtual machine to an existing virtual switch to provide connectivity to a network.-VHDPathSpecifies the path to a virtual hard disk file.-VersionSpecifies the version during the VM creation process.-WhatIf, -wiShows what would happen if the cmdlet runs.