I'm setting up a new vanilla Windows Server 2016 VM on Azure cloud, and want to connect via RDP. I followed the steps in the Quickstart guide, but when I try to connect from a Windows 8 client on the company LAN, I get "An internal error has occurred." When I try to connect from an Android client on the public internet, I get "We couldn't connect to the remote PC. This might be due to an expired password. If this keeps happening, contact your admin or tech support for help. Error code: 0x207".
I've already tried the following.
- Restarted the server
- Deleted and recreated the VM from scratch
- Checked the boot diagnostics screenshot (VM is on Ctrl+Alt+Del screen without showing any errors)
- Checked the network interface rules (HTTP, HTTPS, and RDP allowed on 80, 443, and 3389 respectively over TCP from any source, allowed, prioritised)
- Reset the configuration (Support + Troubleshooting > Reset password > reset configuration only)
- Changed the private IP address to a new address within the subnet (10.0.0.4 > 10.0.0.5)
- Pinged the VM using SysInternals PSPing on the public IP address, port 3389 (0% loss, average 24ms)
- I can connect using Serial console, and have checked the following:
- Installed IIS using PS
Install-WindowsFeature -name Web-Server -IncludeManagementTools
I can view the IIS start screen from my browser using the public IP address - Check if the RDP is disabled by polices.
reg query "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server " /v fDenyTSConnections
> returns 0reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v fDenyTSConnections
> key does not exist
- Check the current configuration of the terminal server.
reg query "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v TSEnabled
> key did not exist, therefore added it usingreg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v TSEnabled /t REG_DWORD /d 1 /f
> key added successully - Check whether set to drain mode
reg query "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v TSServerDrainMode
> key does not exist - Check whether you can connect to the terminal server.
reg query "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v TSUserEnabled
> returns 0 - Check the current configuration of the RDP listener.
reg query "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Winstations\RDP-Tcp" /v fEnableWinStation
> returns 0 - Check whether you can connect to the RDP listener.
reg query "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Winstations\RDP-Tcp" /v fLogonDisabled
> returns 0
- Installed IIS using PS
So I've followed all the online help guides I can find, rebuilt the VM, and tried accessing the VM from two different clients on two different networks, and nothing works! Any ideas?