Block Non-Admins from Remote Desktop Using Regedit
This guide explains how Windows administrators can configure the local registry using Regedit to restrict Remote Desktop Protocol (RDP) access strictly to members of the local Administrators group. By modifying the Remote Desktop listener settings and registry-level permissions, you can prevent standard, non-administrative user accounts from initiating remote sessions.
Prerequisites
- Administrative privileges on the target Windows machine.
- Access to the Windows Registry Editor
(
regedit.exe).
Step 1: Open the Registry Editor
- Press
Win + Rto open the Run dialog. - Type
regeditand pressEnter. - If prompted by User Account Control (UAC), click Yes to run the Registry Editor as an administrator.
Step 2: Navigate to the Terminal Server WinStations Key
In the Registry Editor address bar, navigate to the following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
Step 3: Modify Permissions on the RDP-Tcp Listener
By default, the Remote Desktop Users group is granted
access to the RDP listener. Removing this group’s permissions directly
via the registry restricts access solely to Administrators:
- Right-click the RDP-Tcp key in the left navigation pane.
- Select Permissions… from the context menu.
- In the Group or user names section, select Remote Desktop Users.
- Click Remove.
- Ensure the Administrators group remains in the list with Full Control and Read permissions allowed.
- Click Apply, then click OK.
Step 4: Verify Remote Desktop is Active
Ensure Remote Desktop is enabled for administrators by checking the following value:
- In the left pane, click on:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server - In the right pane, locate the DWORD value named
fDenyTSConnections. - Double-click
fDenyTSConnectionsand set its Value data to0(Enabled). - Click OK.
Step 5: Restart the Remote Desktop Service
To apply the permission changes immediately, restart the Remote Desktop service:
Press
Win + Xand select Terminal (Admin) or PowerShell (Admin).Run the following command:
Restart-Service -Name TermService -Force
Non-administrative users attempting to log in via Remote Desktop will now receive an error stating they do not have permission to sign in remotely.