Local User Accounts on Windows Server: Limited Accounts, Password Policies, and RDP Access

Windows Server allows every account created by an administrator to log on through Remote Desktop by default, whether or not that was the intent. The practical consequence is that a service account created to run an IIS application pool can also open an interactive desktop, and the contractor account you created for a two-week audit keeps its RDP access until someone removes it from a group. Tightening this is three separate operations that people routinely collapse into one: restricting who may connect, enforcing a password policy that actually applies, and choosing how privileged access is granted. All three are local configuration unless the server is domain-joined, in which case policy precedence changes the answer. Host specifications for the box are on windows-vps.org.

Why Every New Account Can Log On Remotely

RDP authorisation is granted through group membership, not through the account’s own properties. The local “Remote Desktop Users” group is the gate, and the “Administrators” group passes through it implicitly because administrators always retain logon rights. Two further groups matter: the “Users” group, which permits interactive logon but not remote, and “Remote Management Users”, which permits WinRM and PowerShell remoting without an RDP session. Adding a person to Remote Desktop Users is therefore a deliberate, revocable act — and removing them from it is the correct way to end remote access without deleting the account and orphaning its file permissions.

Creating Limited Accounts and Granting RDP Deliberately

Create the account with a non-administrative token, add it only to Remote Desktop Users, and confirm the resulting membership before handing out credentials. The sequence below creates the account, sets a password that must be changed at first logon, grants RDP, and prints the effective group membership so you can see exactly what was granted:

net user audit.temp "Temp-Pass-2026!" /add /comment:"Q4 audit" /fullname:"Audit Temp"
wmic useraccount where name="audit.temp" set PasswordExpires=true
net localgroup "Remote Desktop Users" audit.temp /add
net localgroup "Administrators" audit.temp
net localgroup "Remote Desktop Users"
whoami /groups

The penultimate command lists the group, so an unexpected member is visible. For accounts that should reach the server only through PowerShell remoting, use “Remote Management Users” instead and do not touch Remote Desktop Users at all — this is the narrower grant and it is the right default for automation identities and monitoring agents.

Denying Logon Is Stronger Than Remitting It

Group membership is additive and easy to forget, so the more reliable control for sensitive accounts is explicit denial. Local Security Policy under Security Settings → Local Policies → User Rights Assignment contains “Deny log on locally”, “Deny log on through Remote Desktop Services”, and “Deny access to this computer from the network”. A deny right beats any group grant, including Administrators, which makes it the correct tool for service accounts. The accounts used by IIS application pool identities, SQL Server service accounts, and backup agents should appear in “Deny log on through Remote Desktop Services” and often in “Deny log on locally” as well.

Deny rights also carry a trap: if you deny “Deny log on through Remote Desktop Services” to a group that includes Administrators, you can lock yourself out of the only management channel you have. Apply deny rights to named service accounts rather than to broad groups, and confirm that at least one administrative account is outside every deny entry before you close the session. On a workgroup VPS with no out-of-band console, that check is the difference between a policy change and a rebuild.

Auditing Logon Attempts From a Second Account

Account configuration without an audit trail is guesswork. When a restricted account is denied remote logon, the failure is recorded in the Security log on the target as Event ID 4625 with a logon type of 10 for RDP or 3 for network, and the reason code distinguishes a bad password from a denied logon right. Type 4625 with a status of 0xC000015B is specifically a logon-type-not-granted failure, which tells you the deny right is doing its job rather than the password being wrong.

Enable the relevant audit subcategories under Advanced Audit Policy → Logon/Logoff, so that both success and failure of logon events are recorded, and read the Security log rather than the RDP client error text. The client message for a denied right and for a wrong password is deliberately vague, and the server-side event is the only reliable discriminator.

Making the Password Policy Actually Apply

Local password policy lives under Security Settings → Account Policies → Password Policy on a workgroup server, and it applies to local accounts as a single set — you cannot give one local account a different minimum length from another. Domain-joined servers ignore local password policy entirely for domain accounts and enforce the domain’s fine-grained password policies instead, which is why an admin who strengthens the local policy and sees no effect on a joined server has not made a mistake; the policy is simply not authoritative for those identities.

For local accounts, the useful settings are minimum length 14 or more, “Password must meet complexity requirements” enabled, maximum age either 0 (never expires) paired with strong uniqueness or a defined rotation, and an account lockout threshold in the same policy tree under Account Lockout Policy. Lockout is the setting that converts RDP from an unlimited online password oracle into a bounded one: a threshold of 5 with a 15-minute observation window and a 30-minute lockout duration stops automated guessing without locking out real users who mistype twice.

Limiting RDP Exposure Beyond the Account Layer

Account restriction controls who may connect; it does not control how the port is reached. Network Level Authentication should be required, since it authenticates before a session is created and removes the pre-authentication surface that older RDP clients exposed. Set it under System Properties → Remote, or in the Terminal Services policy node as “Require user authentication for remote connections by using Network Level Authentication”. Pair it with a firewall rule that limits TCP 3389 to known source addresses where the users have static IPs, and consider moving the listener to a non-default port only as a noise-reduction measure — it is not a security control on its own.

The enforcement check is straightforward and should be recorded in your build documentation:

Get-NetFirewallRule -DisplayGroup "Remote Desktop" | Select DisplayName, Enabled
Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" |
  Select UserAuthentication, SecurityLayer, PortNumber
qwinsta /server:localhost

UserAuthentication should read 1 for NLA, and SecurityLayer 2 for TLS. If UserAuthentication is 0, NLA is off regardless of what the GUI summary suggests.

Documenting the Account Set as a Standing Control

The failure mode that recurs is not a misconfigured policy but an undocumented account. Temp accounts outlive their purpose, service accounts accumulate group memberships over successive troubleshooting sessions, and a server two years old typically holds several accounts nobody can attribute. A quarterly review is cheap: dump local accounts with net user, dump Remote Desktop Users membership, and compare against a written list of who and what should have access. Two commands produce the whole picture.

Automate that dump into a scheduled task that writes to a log file you actually read, and diff it month over month — new membership is the signal that matters. Deleting the account is usually the wrong first move; remove it from Remote Desktop Users and add it to the deny right, which preserves file ownership and audit history while closing the access path immediately. For hosts running this kind of standing policy, the available plans include the administrative access you need; the account hygiene is yours to maintain.

Leave a Comment