skip to content

Who should hold the right to log on through Remote Desktop Services, and what separate control governs an administrator shadowing a user's live session?

level: seniorimportance: nice to knowfreq 14%

answer

  1. A user right, not a firewall rule
  2. Group that holds it by default
  3. Deny right exists but conflicts
  4. Watching versus controlling a session
  5. Consent is a server-side matter

basics

~20 s

The Allow log on through Remote Desktop Services right decides who may open an RDP logon; restrict it to groups that need it. Shadowing, started with mstsc /shadow, is a separate administrator feature with its own consent and control rules.

solid answer

~40 s

**Allow log on through Remote Desktop Services** (constant `SeRemoteInteractiveLogonRight`) decides which users or groups can reach the sign-in screen through a Remote Desktop Services connection. By default Administrators hold it everywhere and the Remote Desktop Users group also holds it on workstations and servers, but on domain controllers only Administrators should. Restrict it by managing those groups; a Deny right exists but can conflict with the allow. Changes apply at the account's next logon. **Shadowing** is separate: `mstsc /shadow:<sessionID>` lets an administrator view a session, `/control` adds control, and `/noConsentPrompt` allows it without the user's consent. Treat the consent and control rules as server policy to set and audit, since a feature that watches or controls a user's session is a risk when widely granted.

go deeper

for a junior

Know that the logon right is a policy of its own and that shadowing means an administrator viewing a user's live session.

for a middle

Name the right and its default holders, and the three client options for shadowing: the session ID, control, and no consent prompt.

for a senior

Set the right to the smallest group per server class, avoid relying on Deny, and decide who may shadow, with what control and consent, with audit evidence.

for a principal

Own the standard per server class and the evidence that the groups, rights and shadowing rules stay as approved across the estate.

## Two different questions An exposed or merely reachable RDP host raises two separate questions once someone has authenticated. **Who may open a logon session at all?** That is a user right. **Who may watch or take over a session that already exists?** That is shadowing. They are controlled in different places and must not be confused: a firewall rule decides who reaches the listener, the logon right decides who may sign in through it, and the shadowing rules decide who may observe a signed-in user. ## The right to log on through Remote Desktop Services Microsoft's policy page describes **Allow log on through Remote Desktop Services** (constant `SeRemoteInteractiveLogonRight`, under Computer Configuration, Windows Settings, Security Settings, Local Policies, User Rights Assignment) as the setting that determines which users or groups can access the sign-in screen of a remote device through a Remote Desktop Services connection. Facts from the page: - **Defaults.** Administrators hold the right on domain controllers, workstations and servers; the Remote Desktop Users group also holds it on workstations and servers, and domain controller effective defaults list Administrators only. - **Best practice.** Control who can open a connection by adding users to, or removing them from, the Remote Desktop Users group. - **The countermeasure.** Because any account with the right can sign in to the remote console, an unrestricted right lets unauthorised users run software and try to elevate their privileges. On domain controllers assign the right only to Administrators; on other server roles use the Remote Desktop Users group, and for session hosts make sure only authorised IT staff who must manage the computers belong to the groups. On Remote Desktop Session Host servers that run in Application Server mode, only users who need access should be in that group, because it holds the right by default. - **Deny.** A separate Deny log on through Remote Desktop Services right can exclude groups such as Account Operators, Server Operators and Guests, but the page warns it can conflict with legitimate allows and block administrators who belong to a denied group. - **Timing.** No restart is needed; a change applies the next time the account's owner logs on. Note that the right is not the same as the ability to reach the port. A user can establish a Remote Desktop Services connection yet be unable to sign in to the console. ## Shadowing as an administrator feature The Remote Desktop Connection client page documents `/shadow:<sessionID>`, "the ID of the session to shadow", with two options: `/control` ("allows control of the session when shadowing") and `/noConsentPrompt` ("allows shadowing without user consent"). That is a supportable administration feature: a help-desk or operations engineer sees what a user sees to resolve a problem. It is also a capability that, widely granted or silently exercised, lets someone watch or act inside another person's session. What a defender sets: 1. **Who may shadow.** Limit the capability to a named operations group on the hosts where it is needed. 2. **View or control.** Decide whether view-only is enough; interactive control is the more sensitive grant. 3. **Consent.** Decide whether the user must be asked. The client switch states what the administrator asks for; the consent requirement is a server-side policy matter, so the policy is where it is enforced and audited. 4. **Audit.** Record who shadowed which session and when, and review it against tickets. This answer names the client switches, not the server policy values, so check the current Microsoft documentation for the exact setting names before you write a baseline. ## Putting it together | Control | Answers | Where it lives | |---|---|---| | Perimeter or gateway rule | Who reaches the listener | Firewall, gateway | | Allow log on through Remote Desktop Services | Who may open a logon session | User rights assignment, Remote Desktop Users group | | NLA and multifactor authentication | Who proves identity before and during connect | Host setting, gateway | | Shadowing rules | Who may observe or control an existing session | Server remote-control policy | ## Evidence for an audit - The membership of Remote Desktop Users and Administrators on each host, compared with the approved list. - The user-rights assignment exported from each server class. - Logon type 10 successes (event 4624) for accounts that should not be remote users. - The shadowing policy and its change history.

  • Why does the page treat the right as more than a connection permission?
    Because any account holding it can sign in to the remote console of the device. If the right is not limited to legitimate users, unauthorised users could download and run malicious software to elevate privileges. That is why domain controllers should assign it to Administrators only and other servers should limit the Remote Desktop Users group to staff who must manage the machine.
  • Why not simply deny the right to the groups you do not want?
    A Deny log on through Remote Desktop Services right is available, for example for Account Operators, Server Operators and Guests, but the page warns it can conflict with legitimate allows and block administrators who also belong to a denied group. Managing the allow side through the group is simpler to audit.
  • What does /noConsentPrompt change about the audit position of shadowing?
    The page says it allows shadowing without user consent, so an administrator can observe a session without the user being asked. Where it is allowed, the audit trail has to carry the accountability instead: who held the capability, which sessions were shadowed and why, matched against support tickets.

  • Closing the firewall port also removes the need to restrict logon rights
  • Only Administrators hold the right by default on member servers
  • A Deny right is always safer than managing the allow list
  • Shadowing is an attack technique, never an administrator feature
  • The client's /noConsentPrompt switch is a server-side audit control
  • View-only and interactive control of a shadowed session are the same grant