
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -Name TMP -Value "%SystemRoot%\TEMP" -Type ExpandString -Forceįor VMs with legacy operating systems (Windows Server 2012 R2 or Windows 8.1 and below), make sure the latest Hyper-V Integration Component Services are installed. Make sure the environmental variables TEMP and TMP are set to their default values: Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -Name TEMP -Value "%SystemRoot%\TEMP" -Type ExpandString -Force Powercfg /setacvalueindex SCHEME_CURRENT SUB_VIDEO VIDEOIDLE 0 Set the power profile to high performance: powercfg.exe /setactive SCHEME_MIN Set-Service -Name w32time -StartupType Automatic Time service w32time to Automatic: Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation -Name RealTimeIsUniversal -Value 1 -Type DWord -Force

Also, set the startup type of the Windows Set Coordinated Universal Time (UTC) time for Windows. Set the disk SAN policy to Onlineall: DISKPART> san policy=onlineall Netsh.exe winhttp set proxy $proxyAddress $proxyBypassList So the VM can connect to Azure: $proxyAddress='' If the VM needs to work with a specific proxy, add a proxy exception for the Azure IP address

Remove the WinHTTP proxy: netsh.exe winhttp reset proxy To view the routing table, run route.exe print.Remove any static persistent routes in the routing table: If it isĭisabled, the Windows VM will be stuck at out-of-box experience (OOBE). For this reason, the DVD-ROM must be enabled in the OS in the generalized image.

Azure platform mounts an ISO file to the DVD-ROM when a Windows VM is created from a generalized
