Remote desktop connections have become an integral part of Windows 10 Pro and Enterprise editions. The idea of launching, controlling and managing Remote Desktop Connections (RDC) from one management system has made many situations easier. But no system can be perfect. In this guide, we'll show you how to fix remote desktop connections yourself.
Fix 1 : Adjust registry
Modify the registry to fix the problem.
First, just press the Windows key+R keys at the same time.
2. Then type " regedit " and click " OK ".
3. Next, go to this location on the Registry Editor screen-
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminalserver4. Once there, look for the " fDenyTSConnections " key.
5. Then just? double-click the button to customize it.
6. Click on the field "Value data:" and write "".
7. Finally, click " OK ".
This should enable the remote desktop connection.
NOTE -
If you want to change the registry editor on the remote computer, you need to do this-
1. On the remote computer, right-click the Windows icon and click " Windows PowerShell(Admin) ".
2. Then just paste this command and press Enter .
Set-ItemProperty-Pfad "HKLM:\System\CurrentControlSet\Control\Terminal Server"-Name "fDenyTSConnections"-Wert 0After running the command, close PowerShell.
Check the status of the problem again.
Fix 2 : Check the status of the GPO
It is possible that the RDP connection is blocked on your local computer with certain GPO restrictions.
1. First, access the local computer that is having the issue.
2.Then type " cmd " in the search box.
3. Then right- click on " Command Prompt " and select "Run as administrator ".
4. Once the prompt appears on your screen, type or paste this code and press Enter .
gpresult/H c:\gpresult.html
The GPO status report will be generated shortly. Wait for the computer to save the results.
Close the command prompt window.
5. Press the Windows key+R keys at the same time .
6. Then paste that address and press Enter .
C:\gpresult.htmlThe report will open in your browser.
Now, if you find that the Allow users to connect remotely through Remote Desktop Services policy is set to Denied or Disabled , follow these steps:
7. In the browser window, do the following-
Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Connections,
8. Here you need to set the Allow users to connect remotely using Remote Desktop Services policy .
If this policy is Enabled , then this is not the cause of this problem on your computer.
If this policy is set to Disabled , check the Winning GPO section .
Fix 3 : Check the GPO on a remote computer
1. Log in to the remote computer first.
2. Then type " cmd " in the search box next to the Windows icon.
3. Then right- click on " Command Prompt " and select "Run as administrator ".
4. Once the prompt appears on your screen, paste this code and press Enter .
gpresult/S /H c:\gpresult-.html[The symbolizes the name of the remote computer. Just replace it with the name of the remote computer. ]
gpresult/S RM1/H c:\gpresult-RM1.html5. Now open the File Explorer window.
6. On the C: drive, search for " gpresult-RM1.html ". Open it to access it.
Check which group policy is interfering with the incoming remote connection. Disable/enable it in Local Group Policy Editor.
Then try to connect to the remote computer again.
Fix 4 : Change GPO
1. You need to press Windows key+R keys at the same time.
2. Then write " gpedit.msc " and click " OK ".
3. Once Group Policy Editor opens, go to this location-
Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections4. Now double click on " Allow users to connect remotely via Remote Desktop Services " on the right side.
5. Simply check the Enabled option to enable new RDP connections.
6. Click " Apply " and " OK " to apply the settings.
Close the Local Group Policy Editor.
7. Now you need to force the group policy update on the remote computer.
8. Open an elevated Command Prompt window with Administrator privileges. Paste this command and press Enter .
gpupdate/force9. Now you need to navigate to the Organizational Unit (OU) that contains the restrictive policy affecting the computers.
10. Just delete the problematic policy and you're done!
This way you can remove the problematic policy settings that limit the RDP connections.
Fix?5 : Add firewall rule
Sometimes, if the default firewall is deleted, it can prevent the RDP connection through the firewall.
1. Press the Windows key+X keys at the same time .
2. Then click " Windows PowerShell(Admin )".
3. Then paste these codes into the terminal and press enter to run these codes.
Enable-NetFirewallRule-DisplayGroup"Remote Desktop"
netsh advfirewall add firewall rule name="allow RemoteDesktop"dir=in protocol=TCP localport=3389 action=allowClose the PowerShell window. This allows the firewall to create a new RDP connection. Test if this was your problem.
Fix 6 : Automate RDP services
There are some important remote services that need to be running in the background to connect and run remote machines.
1. First, right-click on the Windows icon and click " Run ".
2. Type " services.msc " and click " OK ".
3. Once the Services screen appears, search for " Remote Desktop Services ". Double-click on the respective service.
4. Set the "Startup type" to " Automatic ". Then click " Start " to start the service.
5. Click " Apply " and " OK " to save the changes.
6. Then double click on " Remote Desktop Services UserMode Port Redirector ".
7. As with the term service, set the start type to " Automatic ".
8. Start the service by clicking " Start " if it is not already running.
9. To save the changes, click " Apply " and " OK ".
Make sure these changes are saved on both the remote computer and the local computer.
Quiet type both machines once to save the changes.
NOTE -
If you don't want to change the services from the Services screen, you can do so simply by passing a command.
1. Press the Windows key+X keys at the same time .
2. Then click " Windows PowerShell(Admin )".
3. Then type this code and press Enter to run it.
"TermService","UmRdpService" | ForEach-Object{ (Get-WmiObject Win32_service-ComputerName [RemoteComputer]-Filter "Name = "$_" ").StartService() }This will start the service on the remote client. However, you must manually configure the above services (TermService and UmRdpService) to start them automatically.


แสดงความคิดเห็น