For this Azure Windows VM RDP authentication error, use this sequence:
- Create a backup snapshot of the OS disk before making changes.
- If the VM is domain-joined, stop the Group Policy Client service first so domain policy does not immediately overwrite changes:
REG add "HKLM\SYSTEM\CurrentControlSet\Services\gpsvc" /v Start /t REG_DWORD /d 4 /f
After the issue is fixed, restore it:
sc config gpsvc start= auto
sc start gpsvc
gpupdate /force
- As a workaround, temporarily disable Network Level Authentication (NLA), then restart the VM:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0
After access is restored and the root cause is fixed, re-enable NLA and restart the VM:
REG add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v disabledomaincreds /t REG_DWORD /d 0 /f
REG add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 1 /f
- If the VM is domain-joined, connect through Serial Console, remote CMD, or remote PowerShell and check domain communication:
- Identify the logon server:
set | find /i "LOGONSERVER"
- Test the secure channel:
Test-ComputerSecureChannel -verbose
- If broken, repair it:
Test-ComputerSecureChannel -repair
- Update the machine account password if needed:
Reset-ComputerMachinePassword -Server "<COMPUTERNAME>" -Credential <DOMAIN CREDENTIAL WITH DOMAIN ADMIN LEVEL>
Common causes are a broken secure channel, mismatched computer account password, or an unhealthy domain controller.
- If domain communication is healthy but sign-in still fails, check whether domain credentials are disabled on the VM:
REG query "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v disabledomaincreds
If the value is 1, change it to 0.
- If the VM is standalone, check the RDP encryption level:
reg query "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v MinEncryptionLevel
- If it is
3, set it to2:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v MinEncryptionLevel /t REG_DWORD /d 2 /f
- If it is
2, try setting it to1:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v MinEncryptionLevel /t REG_DWORD /d 1 /f
Restart the VM after changing this value.
- Check TLS server protocol settings on the VM. If TLS 1.0, 1.1, or 1.2 server protocol values are not all
1, the protocol is disabled and must be enabled. Query with:
reg query "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS x.x\Server" /v Enabled
- Check whether FIPS-only connections are enforced:
reg query "HKLM\SYSTEM\CurrentControlSet\Control\Lsa\FIPSAlgorithmPolicy" /v Enabled
If the value is 1, change it to 0. Also check MinEncryptionLevel; if it is 4, change it to 2. Restart the VM afterward.
- Also verify the standard RDP connectivity items after each change:
- Reset Remote Desktop configuration
- Check NSG rules or Cloud Services endpoints
- Review VM console logs
- Reset the NIC
- Check VM Resource Health
- Reset the VM password
- Restart the VM
- Redeploy the VM
- Confirm outbound TCP 3389 is not blocked by local routers or firewalls
Caution: several steps above modify the registry or authentication settings. Take the snapshot first, and re-enable NLA after troubleshooting.
- Troubleshoot authentication errors when you use RDP to connect to Azure VM
- Troubleshoot authentication errors when you use RDP to connect to Azure VM
- Troubleshoot Remote Desktop connections to an Azure virtual machine
- An internal error occurs when you try to connect to an Azure VM through Remote Desktop