Note: If you cannot access the GUI, you can run this command in an elevated PowerShell prompt on the remote machine to achieve the same result:
Open Command Prompt as Administrator and run: restart-service termserv -force (or restart the "Remote Desktop Services" in services.msc ). Note: If you cannot access the GUI, you
If the issue is related to the Remote Desktop Gateway, a registry adjustment may help. Registry Editor (regedit.exe). HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client Create a new DWORD (32-bit) Value RDGClientTransport and set its value to Restart your computer. Are you connecting to a local server cloud-hosted virtual machine? Fix Remote Desktop Error Code 0x904: 4 Working Solutions Note: If you cannot access the GUI, you