Skip to content
HOSTIGAN
Windows Server

How to create users and administrators in Windows Server

Create local users and administrators on Windows Server, give them Remote Desktop access, set password rules and retire accounts safely with PowerShell.

Beginner 6 min read Updated November 24, 2026

A fresh Windows Server has exactly one account you can use: the built-in Administrator. That is fine for the first ten minutes, but as soon as someone else needs access — a colleague, a developer, an accountant running a desktop application — you want separate accounts with the right level of access. In this guide you will create users and admins in both the graphical tools and PowerShell, give them Remote Desktop access, set password rules, and remove accounts without leaving loose ends.

Everything here is about local accounts on a standalone server, such as a Windows VPS. Active Directory domains are mentioned briefly at the end.

How accounts, groups and RDP access fit together

On a standalone server, what a user can do is decided almost entirely by which local groups they belong to. Three groups matter most:

GroupCan log in over RDPCan install software and change settings
AdministratorsYesYes
Remote Desktop UsersYesNo
UsersNo (on its own)No

Every new account lands in Users automatically. To let someone work over Remote Desktop, add them to Remote Desktop Users. To make them an admin, add them to Administrators — which already includes RDP access, so there is no need for both.

Tip: Give every person their own account, even if two people need identical rights. Shared logins make the event log useless: you can see that something happened, but not who did it.

Create a user with the graphical tools

  1. Press Win + R, type lusrmgr.msc and press Enter. (On Server Core this tool isn't available; use PowerShell.)
  2. Open Users, right-click in the empty area and choose New User.
  3. Fill in a username such as maria.berg, a full name and a description like Finance – ERP client.
  4. Set a temporary password and tick User must change password at next logon if the person will choose their own.
  5. Click Create, then double-click the new user and open Member Of.
  6. Click Add, type Remote Desktop Users (or Administrators), click Check Names and OK.

Note: "User must change password at next logon" can clash with Network Level Authentication, which checks the password before the session starts. If a new user is refused, set their final password yourself and let them change it with Ctrl + Alt + End once logged in.

Create users and admins with PowerShell

PowerShell is faster, repeatable, and works the same on Server Core. The Microsoft.PowerShell.LocalAccounts cmdlets are built into Windows Server 2016 and later. Open PowerShell as administrator.

A standard RDP user

$pw = Read-Host -AsSecureString "Password for maria.berg"
New-LocalUser -Name "maria.berg" -Password $pw -FullName "Maria Berg" -Description "Finance - ERP client"
Add-LocalGroupMember -Group "Remote Desktop Users" -Member "maria.berg"

Read-Host -AsSecureString asks for the password without echoing it and keeps it out of your command history. Never put a password in plain text in a script.

A personal administrator

$pw = Read-Host -AsSecureString "Password for tom.admin"
New-LocalUser -Name "tom.admin" -Password $pw -FullName "Tom Larsen" -PasswordNeverExpires
Add-LocalGroupMember -Group "Administrators" -Member "tom.admin"

Check the result

Get-LocalUser | Format-Table Name, Enabled, LastLogon
Get-LocalGroupMember -Group "Administrators"
Get-LocalGroupMember -Group "Remote Desktop Users"

Then test: open a new RDP window and log in as the new account with .\tom.admin. Keep your existing session open until you know it works.

Non-English Windows

Group names are translated on localised installations, so Add-LocalGroupMember -Group "Administrators" may fail. Use the well-known security identifiers instead — they are the same in every language:

Get-LocalGroup -SID "S-1-5-32-544" | Add-LocalGroupMember -Member "tom.admin"     # Administrators
Get-LocalGroup -SID "S-1-5-32-555" | Add-LocalGroupMember -Member "maria.berg"    # Remote Desktop Users

The classic net commands

You will still see these in older documentation, and they work fine:

net user maria.berg * /add /fullname:"Maria Berg"
net localgroup "Remote Desktop Users" maria.berg /add
net user maria.berg

The * makes Windows prompt for the password instead of taking it from the command line.

Set password and lockout rules

Local password rules apply to every local account on the server. View them and tighten them with net accounts:

net accounts
net accounts /minpwlen:14 /maxpwage:unlimited
net accounts /lockoutthreshold:10 /lockoutwindow:15 /lockoutduration:15

This requires passwords of at least 14 characters, removes forced expiry, and locks an account for 15 minutes after ten failed attempts within 15 minutes. Complexity requirements live in Local Security Policy (secpol.msc → Account Policies → Password Policy).

Current guidance from Microsoft and NIST favours long passphrases over frequent forced changes: people who must change passwords every 60 days tend to pick predictable ones. If your organisation still requires expiry, tell users in advance so nobody is locked out on a Monday morning.

Disable, then remove, accounts

When someone leaves or no longer needs access, work in two stages: disable first, delete later.

Disable-LocalUser -Name "maria.berg"
Remove-LocalGroupMember -Group "Remote Desktop Users" -Member "maria.berg"
Get-LocalUser -Name "maria.berg" | Format-List Name, Enabled

A disabled account can't log in, but nothing is lost — if it turns out a scheduled task or a service still runs under that account, you can switch it back on in seconds.

Disabling does not throw out someone who is logged in right now. List the sessions and end theirs:

quser
logoff 3

After a few weeks, when you are sure nothing depends on it, delete the account:

Remove-LocalUser -Name "maria.berg"

The profile folder under C:\Users\maria.berg remains. Copy out anything worth keeping, then remove it under System Properties → Advanced → User Profiles → Settings so the registry entries go too.

Concurrent sessions and licensing

However many accounts you create, Windows Server allows two simultaneous administrative Remote Desktop sessions. A third person trying to log in is asked to disconnect someone. This is a Microsoft licensing rule, not a limit set by your hosting provider.

If more people need to work at the same time — typically for a shared desktop application — you need the Remote Desktop Session Host role, a licensing server, and an RDS Client Access Licence (CAL) per user or per device. Encourage everyone to sign out properly; a closed but still connected session occupies a slot.

Local accounts or Active Directory?

Active Directory gives you central accounts across many machines, group policies and single sign-on, but it requires at least one domain controller to run and maintain. For one or two servers, local accounts are simpler and perfectly adequate. Avoid promoting your only application server to a domain controller just to manage a handful of users. If you later get a domain, the server can join it and use domain and local accounts side by side.

Troubleshooting

SymptomLikely causeFix
"The connection was denied because the user account is not authorised for remote login"Not in Remote Desktop Users or AdministratorsAdd to the right group and reconnect
Correct password rejectedMissing .\ prefix, or forced password change with NLALog in as .\username; set a final password
"Group not found"Localised group nameUse the SID commands above
Account lockedLockout threshold reachedWait, or untick Account is locked out in lusrmgr.msc

Many lockouts from addresses you don't recognise mean RDP is too exposed; restrict it as described in protecting Windows Server against unauthorised access.

In short

One personal account per person. Remote Desktop Users for people who just need to work on the server, Administrators for those who manage it. Use New-LocalUser and Add-LocalGroupMember with passwords from Read-Host -AsSecureString, set sensible length and lockout rules, and retire accounts by disabling them before you delete them. If you haven't connected yet, see connecting with Remote Desktop; if the server is brand new, start with installing Windows Server on a VPS.

Windows Server on Hostigan

On a Hostigan VPS you have full administrator access, so local users, groups and policies are entirely under your control. Windows runs from your own ISO and licence, which means any RDS licensing for extra concurrent users is also arranged with Microsoft directly.

Frequently asked questions

Administrators have full control of the server and can always log in over RDP. Remote Desktop Users can log in over RDP but cannot change system settings or install software for everyone.

Next in “Get started with Windows Server” · 5 of 8How to configure Windows Firewall on Windows Server