- Connecting to another Windows computer without being physically present can be done using Remote Desktop from Windows. You can use another Windows computer or even your mobile device.
- In case of errors, we must check that the proper settings are enabled, recreate domain certificates or make some changes using the Registry Editor. We got you covered on all bases.
- Having the ability to make a remote desktop connection comes very handy when you need to make quick changes to your system without being near it.
- Did you encounter other problems with your computer? We have a great Windows 10 errors hub that tackles many of them.
Users reported The remote connection was denied error on Windows 10, so let’s see how to fix it.
How can I fix the remote connection was denied because the user account is not authorized for remote login
Solution 1 – Change Remote settings
According to users, they are unable to start the Remote Desktop session due to this error, so in order to fix this problem, you need to check Remote settings on your host computer. To do that, follow these steps:
- Press Windows Key + S and enter system. Choose System from the menu.
- Select Remote settings from the left pane.
- Be sure that Allow remote connections to this computer option is selected and click Select Users.
- Click the Add button.
- Enter the user name in Enter the object names to select and click Check Names. Be sure to enter the computer name before the user name like this: COMPUTERNAMEusername.
- Save changes, and try to use Remote Desktop again.
If you have Remote Desktop Users group, be sure to add it by following the steps above.
Solution 2 – Change Local Security Policy settings
Sometimes you can get The remote connection was denied error if your Local Security Policy settings are incorrect. To fix this problem you need to edit Local Security Policy by following these steps:
- Press Windows Key + R and enter secpol.msc. Click OK or press Enter to run it.
- When Local Security Policy window opens go to Local Policies > User Rights Assignment in the left pane.
- In the right pane locate Allow log on through Remote Desktop Services and double click it.
- Click Add User or Group button.
- Enter the user name or group name in the Enter the object names to select and click Check Names button. If your input is valid, click OK to save changes. If you have the Remote Desktop Services group, be sure to add it.
Solution 3 – Delete local and roaming profile
Few users claim that you can fix this problem by deleting local and roaming profiles. We don’t know if this solution works, but you might want to try it.
Solution 4 – Set the Remote Desktop Services logon to Network Service
Users reported that The remote connection was denied error appears if the Remote Desktop Services service logon is set to Local System. To change that, follow these steps:
- Press Windows Key + R and enter services.msc. Press Enter or OK.
- When Services window opens, locate Remote Desktop Services and double click it.
- When the Properties window opens, go to Log On tab and make sure that Local System account isn’t selected.
- After Network Service is selected, click Apply and OK to save changes.
After changing the Remote Desktop Services service logon to Network Service, the issue should be completely resolved.
Solution 5 – Alter your registry
One solution that users proposed is to edit your registry. To fix this problem you need to grant certain permissions to the Users group. Before we start, we have to mention that editing your registry can cause certain issues, therefore you might want to create a backup of your registry just in case. To edit your registry, do the following:
- Press Windows Key + R and enter regedit. Press Enter or click OK.
- Navigate to the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon key in the left pane, right-click it and choose Permissions.
- In Group or user names select Users. Make sure that Users group has Read permissions set to Allow. After setting the Read permissions to Allow, click Apply and OK to save changes.
Solution 6 – Recreate Domain Certificates
After a bit of research, few users found out that their logon server was giving them Event 29 warning, and that warning was the cause of this problem. To fix this problem you need to recreate Domain Certificates by following these steps:
- On the main domain controller, press Windows Key + R. Enter mmc.exe and press Enter to run it.
- Go to File > Add/Remove Snap-in.
- Select Certificates and click the Add button.
- Select Computer account and click Next.
- Now click the Finish button.
- Click the OK button.
- Go to Certificates (Local computer) > Personal > Certificates.
- Locate old domain controller certificate, right-click it and choose Delete. Click Yes to confirm that you want to delete the certificate.
After deleting the certificate, you need to request the new one by following these steps:
- Expand Certificates (Local Computer) and right click Personal. Select All Tasks > Request New Certificate.
- Follow the instructions in the wizard to request a new certificate.
Lastly, you just need to verify the certificate. To perform this step you need to be a member of the Domain Admins group or have the appropriate privileges assigned to your account by your administrator. To verify the Kerberos Key Distribution Center (KDC), follow these steps:
- Open Command Prompt as administrator. To do that, press Windows Key + X and select Command Prompt (Admin) from the menu.
- When Command Prompt opens, enter certutil -dcinfo verify and press Enter to run it.
If the procedure is successful, reboot the domain controller and the server that you’re trying to connect to and the issue should be resolved.
Solution 7 – Create a new DWORD
According to users, you can fix this problem by creating a new DWORD in the registry. To do that, follow these steps:
- Start Registry Editor.
- In the left pane navigate to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server key.
- In the right pane, right click the empty space and choose New >DWORD (32-bit) Value.
- Enter IgnoreRegUserConfigErrors as the name of the new DWORD and double click it to open its properties.
- Once the properties window opens, set the Value data to 1. Click OK to save changes.
Solution 8 – Align the MaxTokenSize for the server
According to users, you should be able to connect to the server by using the mstsc.exe /admin command. After that, you need to align MaxTokenSize for this server and that should solve the issue.
Solution 9 – Add domain users instead of Remote Desktop users
Users reported The remote connection was denied error on their PC while trying to use Remote Desktop feature, and according to them, they were unable to add Remote Desktop users for some strange reason.
To circumvent this issue, it’s suggested that you add domain users instead of Remote Desktop users. After doing that, this error should be fixed.
The remote connection was denied because of the username and password combination
Solution 1 – Turn on CHAP and CHAPv2
Users reported this issue while trying to use VPN, and in order to fix it you’ll need to turn on CHAP and CHAPv2. By default Windows 10 disables these features, so you’ll need to enable them.
To do that, simply locate your VPN network, right-click it and choose Properties from the menu. Go to the Security tab and make sure that you check Microsoft Chap Version 2 (MS-CHAP v2). After doing that, click Apply and OK to save changes.
Solution 2 – Use rasphone command
You can quickly connect to your VPN by using the rasdial command, but sometimes you can get The remote connection was denied error while using this command.
To circumvent this issue, users are suggesting to use rasphone command instead. To use it, simply start the command line tool, enter rasphone -d “Your VPN connection name” and press Enter.
Solution 3 – Create NTLMv2 Compatibility DWORD
You should be able to fix this problem by adding a certain DWORD to the registry. To do that, follow these steps:
- Start Registry Editor and go to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesRemoteAccessPolicy key in the left pane.
- In the right pane, right-click the empty space and choose New > DWORD (32-bit) Value. Enter NTLMv2 Compatibility as the name of the new DWORD.
- Double click NTLMv2 Compatibility DWORD to open its properties.
- When the Properties window opens, enter 1 in the Value data field and click OK to save changes.
- Close Registry Editor.
The remote connection was denied error can prevent you from using Remote Desktop or VPN, but we hope that you managed to fix this issue by using one of our solutions.
FAQ: Learn more about Remote Desktop
- What does Remote Desktop do?
It enables you to control a computer from a distance. Using just an Internet connection, you can see and do everything just like you were sited next to it. If the computer cannot connect, you must first fix the connection.
- Can’t connect to VPN the remote connection was denied?
The most common fix when using a VPN connection is to change the settings on your VPN connection to allow Microsoft CHAP Version 2. This setting is found in Properties panel of the VPN connection. Go to Security tab and check the box.
Make sure your connection speed is good enough, otherwise see our list of the fastest VPNs.
- Where is RDP located?
Remote Desktop Connection has the executable file called mstsc.exe . This file is located in %systemroot%/system32/mstsc.exe
Editor’s Note: This post was originally published in June 2018 and has been since revamped and updated in March 2020 for freshness, accuracy, and comprehensiveness.Editor's Note: This article was originally published in August 2016 and was revamped and updated in August 2020 for freshness, accuracy, and comprehensiveness.