Add a new user to Windows with remote access

Premium services since 2010

Trusted by thousands of businesses worldwide • 99.9% Uptime Guarantee • Crypto Accepted

Table of Contents

Applies to: All Windows OS

When managing a Windows VPS or RDP server, you’ll often need to create additional user accounts — for example, to share access with a team member without handing over your administrator credentials, or to set up isolated environments for different users. This guide walks you through both a quick automated method and a manual step-by-step approach using the command line.

Prerequisites

  • Administrator access to the Windows machine (enabled by default on all AMinServe services)
  • Remote Desktop enabled on the target machine
  • A strong, unique password ready for the new user

ℹ️ Why create a separate user? It is best practice to avoid sharing your administrator account. A dedicated user account limits what a person can access, reduces risk if credentials are compromised, and lets you revoke access for one user without affecting others.

Fast Solution (Automated Script)

One-click option

Download this script and run it inside your RDP session. It automates the steps below — creating a new user account and adding it to the Remote Desktop Users group. You will be prompted to enter a username and password. No manual commands needed.

✅ If you prefer to understand exactly what is happening, or if you want more control over the process, follow the manual steps below.

Manual Solution (Command Line)

The manual method uses two net commands in Command Prompt to create the user and grant them RDP access. This works on all supported Windows versions.

1Open Command Prompt as Administrator
Click the Start menu and type cmd. Right-click Command Prompt in the results and choose Run as administrator. You must run CMD as an administrator — otherwise the commands will fail with an “Access is denied” error. Opening Command Prompt from the Start menu

2Create the New User Account
Type the following command and press Enter, replacing USERNAME and PASSWORD with your chosen values:

net user USERNAME PASSWORD /add

Example:
net user john Xk9#mPqL72! /add

A successful result shows: The command completed successfully.

⚠️ Use a strong password. RDP accounts exposed to the internet are a common brute-force target. Use at least 12 characters, mixing uppercase, lowercase, numbers, and symbols. Never use a placeholder like password1 on a live server.

3Grant the User Remote Desktop Access
Adding a user does not automatically allow them to connect via RDP. Run this second command to add them to the Remote Desktop Users group:

net localgroup "Remote Desktop Users" USERNAME /add

Example:
net localgroup "Remote Desktop Users" john /add

Running both net user commands in CMD

Both commands together — what they do:

CommandWhat it does
net user ... /addCreates a local Windows user account with the specified credentials
net localgroup "Remote Desktop Users" ... /addAdds the user to the group that is permitted to start RDP sessions

Step 4: Verify the New User Can Connect

Open a new Remote Desktop Connection session (do not close your current one) and test the new credentials:

  1. Press Win + R, type mstsc, and press Enter
  2. Enter the server’s IP address and click Connect
  3. When prompted for credentials, click More choices → Use a different account
  4. Enter the new username and password you just created
  5. Accept any certificate warnings and confirm you can log in successfully

✅ Keep your administrator session open while testing, so you can fix any issues without getting locked out.

Security Best Practices

Once the new account is working, consider these steps to harden your setup:

  • Use the least privilege principle. The new user is a standard (non-administrator) account by default — keep it that way unless they specifically need admin rights.
  • Set a password expiry policy. For long-running servers, configure passwords to expire periodically via net accounts /maxpwage:90.
  • Disable accounts you no longer need. Use net user USERNAME /active:no to disable an account without deleting it, preserving its files and settings.
  • Enable Network Level Authentication (NLA). NLA requires users to authenticate before a full RDP session is established, reducing exposure to unauthenticated attacks.
  • Consider changing the default RDP port (3389) to a non-standard port to reduce automated scanning attempts.

Troubleshooting

ProblemLikely causeFix
“Access is denied” when running commandsCMD not running as administratorRight-click CMD → Run as administrator
User created but cannot connect via RDPForgot to run the localgroup commandRun net localgroup "Remote Desktop Users" USERNAME /add
“The remote computer requires Network Level Authentication”RDP client version mismatch or NLA settingsUpdate your RDP client, or disable NLA temporarily in System Properties → Remote tab
Connection refused / timeoutFirewall blocking port 3389, or RDP not enabledConfirm RDP is enabled in System Properties and that port 3389 is open in Windows Firewall
“The system error 1378 has occurred” (already in group)User is already a member of Remote Desktop UsersNo action needed — the user already has RDP access

🚫 To remove a user and revoke access: Run net user USERNAME /delete. This permanently deletes the account and all associated local data. Use /active:no instead if you may need to restore the account later.