大网数据广告活动
远程桌面与会话

Deny user or group logon via RDP

· 52CE 我爱测

Helps solve an issue where the Deny this user permissions to logon to a Remote Desktop Session Host Server feature behaves differently in different versions of Windows Server.

This article provides help to solve an issue where the Deny this user permissions to logon to a Remote Desktop Session Host Server feature behaves differently in different versions of Windows Server.

Original KB number:   2258492

Symptoms

You may notice that the behavior of the Deny this user permissions to logon to a Remote Desktop Session Host Server is different between Windows Server 2003 and Windows Server 2008. In Windows Server 2003, this setting is called Deny this user permission to logon to any Terminal Server.

Consider the following setup:

  1. Windows 2008 Server member server.

  2. Windows Server 2003 member server.

  3. Within Active Directory Users and Computers snap-in, choose a user and access the Remote Desktop Services Profile tab. If the domain controller is running Windows Server 2003, this will be called Terminal Services Profile. Here set the 'Deny this user permission to logon to a Remote Desktop Session Host server' setting. Again, in Windows Server 2003 this is called 'Deny this user permission to logon to any Terminal Server'.

  4. Set this user as a member of either the "Remote Desktop Users" group or the local "Administrators" group under both the Windows Server 2003 and Windows Server 2008 servers.

Now, use this user's credentials to logon to the Windows 2003 member server via RDP, you'll notice that this user will be blocked. However, this user will be able to logon to the Windows Server 2008 server.

Cause

This behavior is by design. In Windows Server 2003, this setting is checked no matter whether the server is in Remote Administration Terminal Server mode or Application Terminal Server mode. However, in Windows Server 2008 this setting is checked on a machine that has Remote Desktop Services in Application Mode only. Remote Administration mode won't check this parameter. If you change the Windows Server 2008 server to Remote Desktop Services Application Mode by installing the role, this user won't be denied logon via RDP.

Resolution

To deny a user or a group logon via RDP, explicitly set the "Deny logon through Remote Desktop Services" privilege. To do this, access a group policy editor (either local to the server or from a OU) and set this privilege:

  1. Start | Run | Gpedit.msc if editing the local policy or chose the appropriate policy and edit it.

  2. Computer Configuration | Windows Settings | Security Settings | Local Policies | User Rights Assignment.

  3. Find and double-click "Deny logon through Remote Desktop Services".

  4. Add the user and / or the group that you would like to deny access.

  5. Select ok.

  6. Either run gpupdate /force /target:computer or wait for the next policy refresh for this setting to take effect.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。