trio.so
How-Tos

How to Enable Remote Desktop (RDP) With Group Policy (GPO)

Turn on Remote Desktop for Windows machines with Group Policy: the exact policy path, the firewall rule, NLA, and how to check it worked.

Mountain landscape representing leadership perspective and vision
Written by
Atena Ladchartabi

Content writer, trio.so

Published on
Modified on

To enable Remote Desktop with Group Policy, set "Allow users to connect remotely by using Remote Desktop Services" to Enabled in a GPO linked to your computers, allow the Remote Desktop rule through Windows Defender Firewall in the same GPO, and put the right people in the Remote Desktop Users group. This guide gives the exact paths, written from Microsoft's documented policy paths for Windows 11 and Windows Server 2022, plus the checks that show whether it worked.

You need domain-joined machines, the Group Policy Management Console (GPMC) and permission to create and link a GPO. Remote Desktop Services cannot host connections on Windows Home editions, so this only works on Pro, Enterprise, Education and Server.

Step 1: Create the GPO

  1. Open Group Policy Management (gpmc.msc) on a domain controller or an admin workstation.
  2. Right-click the organizational unit (OU) that holds the target computers and choose Create a GPO in this domain, and Link it here.
  3. Name it for what it does, for example RDP - Enable on workstations, then right-click it and choose Edit.

Scope it to one test OU first. A GPO that opens RDP is not one to link at the domain root on the first try.

Step 2: Enable the Remote Desktop setting

Go to:

Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections

Open Allow users to connect remotely by using Remote Desktop Services, set it to Enabled and click OK. This is the setting behind the "Allow remote connections to this computer" checkbox in System Properties.

Step 3: Require Network Level Authentication

Go to:

Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security

Set Require user authentication for remote connections by using Network Level Authentication to Enabled. Network Level Authentication (NLA) makes the user authenticate before a session is created, which cuts the exposure to unauthenticated attacks on the RDP service. Leave it on unless you have a client that cannot do it.

Step 4: Allow RDP through Windows Defender Firewall

Enabling the setting does not always open the firewall port, so add the rule yourself. In the same GPO, go to:

Computer Configuration > Policies > Windows Settings > Security Settings > Windows Defender Firewall with Advanced Security > Windows Defender Firewall with Advanced Security > Inbound Rules

  1. Right-click and choose New Rule.
  2. Choose Predefined, select Remote Desktop, and click Next.
  3. Keep the rules that apply (TCP-In for RDP on port 3389), choose Allow the connection, and finish.
  4. Open the new rule's properties, go to Scope, and limit Remote IP address to your admin subnet or VPN range rather than Any.

The older route also works: Administrative Templates > Network > Network Connections > Windows Defender Firewall > Domain Profile > Windows Defender Firewall: Allow inbound Remote Desktop exceptions. Use the inbound rule when you want to restrict the source addresses.

Step 5: Decide who can connect

Local administrators can already connect over RDP. Everyone else needs to be in the local Remote Desktop Users group. Two ways to manage that with Group Policy:

  • Group Policy Preferences. Computer Configuration > Preferences > Control Panel Settings > Local Users and Groups. Add a new Local Group for Remote Desktop Users and add your support group. Choose Update, not Replace, so you do not wipe members that other tools added.
  • Restricted Groups. Computer Configuration > Policies > Windows Settings > Security Settings > Restricted Groups. This replaces the group's membership entirely, which is stricter and easy to get wrong.

Step 6: Apply the policy and check that it worked

On a target computer, open an administrator Command Prompt or PowerShell and run:

gpupdate /force
gpresult /h C:\Temp\gpresult.html

Open the report and look under Computer Configuration, Applied GPOs, for your GPO and the Remote Desktop setting. Then test the port from another machine:

Test-NetConnection -ComputerName PC-0142 -Port 3389

A TcpTestSucceeded : True result means the firewall and the service are both answering. Then connect with mstsc as a user from the allowed group.

Remote Desktop and Group Policy troubleshooting

SymptomLikely causeFix
Setting never shows in gpresultGPO not linked to the OU, or the computer is in another OU, or security filtering excludes itCheck the link, the OU and Security Filtering; run gpupdate /force and reboot
Port 3389 times outFirewall rule missing, or a network firewall between you and the hostCheck the inbound rule is enabled for the active profile (Domain); test from the same subnet
"The connection was denied because the user account is not authorized for remote login"User is not in Remote Desktop Users, or "Allow log on through Remote Desktop Services" excludes themAdd the user or group; check Security Settings > Local Policies > User Rights Assignment
"The remote computer requires Network Level Authentication"Client cannot do NLA, or is not domain-reachableUpdate the client; do not turn NLA off to make one old machine work
Works on some PCs onlyWindows Home edition, or a local policy or another GPO sets the opposite valueRun gpresult /h and look for a winning GPO with the setting Disabled

If the Group Policy Client service itself fails on a machine, see The Group Policy Client service failed the sign-in.

RDP security: what to do before you roll this out

  • Never expose port 3389 to the internet. Put RDP behind a VPN or a Remote Desktop Gateway.
  • Keep NLA on and require strong passwords or MFA at the gateway or VPN.
  • Limit who is in Remote Desktop Users to a named support group, and review it.
  • Set an account lockout policy so repeated failed sign-ins are slowed down.
  • Scope the firewall rule to your admin subnet.

What about Windows 10 and Windows 7?

Windows 10 uses the same paths as Windows 11. Windows 7 has been out of support since January 2020; replace those machines instead of opening RDP to them.

Managing this across many devices

Group Policy covers domain-joined Windows machines. Many fleets are not all domain-joined, and they include Macs and Linux machines that GPO never reaches. trio.so remote desktop covers the devices enrolled in trio.so, from one console. See remote desktop management and remote terminal.

A trio.so remote desktop session connected to the Windows PC Finance-PC-07, with Ctrl+Alt+Del and Disconnect controls.
Open a remote desktop session to a managed Windows PC from the trio.so console.

Related reading: disable Control Panel with Group Policy and how to disable a domain controller GPO.

Ready-to-use Templates

Must-have Template Toolkit for IT Admins

Explore All
Template Toolkit

Reach any Windows PC remotely from one console

trio.so gives IT remote desktop and a live terminal on managed Windows devices, with no Group Policy objects to write. Start a free trial.

Start free trial

Manage Every Device From One Console

trio.so brings device management, patching and security policies for Windows, macOS, Linux, iOS/iPadOS and Android into one console. Enroll a device and see it in the console within minutes.

14-day free trial. No credit card required.

trio.so brings device management, patching and security policies for Windows, macOS, Linux, iOS/iPadOS and Android into one console. Enroll a device and see it in the console within minutes.

Smiling womanAbstract geometric patternAbstract geometric patternSmiling womanSmiling woman

Frequently Asked Questions (FAQ)

Have questions? We've got answers. This section covers some of the most commonly asked questions related to this topic.

Set "Allow users to connect remotely by using Remote Desktop Services" to Enabled under Computer Configuration, Administrative Templates, Windows Components, Remote Desktop Services, Remote Desktop Session Host, Connections. Then add a firewall rule for Remote Desktop and add users to Remote Desktop Users.

Add a domain group that contains those users to the Remote Desktop Users group with Group Policy Preferences. Do not add Domain Users to the group unless you mean to let everyone connect to every machine.

Set the same setting to Disabled, and disable or remove the firewall rule. Set it to Not configured only if you want local settings to apply again.

Yes, on Pro, Enterprise and Education. Windows 11 Home cannot accept incoming Remote Desktop connections.

Related

From the blog

The related industry news, interviews, technologies, and resources.