Create VMs #remove if the vm is still there Remove-VM -Name $VMName -Force New-VM -Name $VMName -BootDevice
Fantastic news! We've Found the answer you've been seeking!
Question:
Create VMs #remove if the vm is still there Remove-VM -Name $VMName -Force New-VM -Name $VMName -BootDevice VHD -VHDPath c:\miao\miaoAccounting.vhdx -Path D:\miao -Generation 2 SET-VMProcessor -VMName $VMName -count 7 Set-VMMemory $VMName -StartupBytes 8GB remove-VMNetworkAdapter -VMName $VMName -Name "Network Adapter" Add-VMNetworkAdapter -VMName $VMName -Name "financeNetNIC" -SwitchName "miaoFinanceNet" -StaticMacAddress $mac1 Set-VMProcessor -VMName $VMName -ExposeVirtualizationExtensions $true Get-VMNetworkAdapter -VMName $VMName | Set-VMNetworkAdapter -MacAddressSpoofing On
Posted Date: