Since 2016 · 50,000+ customers · ★ 5.0 on Google Live chatWhatsAppTelegramOpen a ticket
Get started
Windows Server

How to Enable Multiple RDP Sessions on Windows Server 2022 (Command Line)

Enable multiple RDP sessions on Windows Server 2022 guide by 99RDP

Out of the box, Windows Server 2022 allows two simultaneous Remote Desktop sessions for administration, and each user can only have one of them. This guide shows how to let the same user open two sessions, and how to go beyond two concurrent sessions properly with the Remote Desktop Session Host role and RDS licensing, using PowerShell and the command line. The same steps work on Windows Server 2019 and 2025.

Quick answer

  • Up to 2 sessions, any users (no licence needed): allow a user to have more than one session with
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fSingleSessionPerUser /t REG_DWORD /d 0 /f
  • More than 2 sessions: install the RD Session Host role with
    Install-WindowsFeature -Name RDS-RD-Server -IncludeManagementTools -Restart
    then add RDS CALs and point the server at an RD Licensing server. Without licences, the extra sessions stop working after a 120-day grace period.
Diagram of several users working in separate RDP sessions on one Windows Server with the RD Session Host role
Several users, one server

How many RDP sessions does Windows Server 2022 allow?

SetupConcurrent sessionsLicences needed
Default (Remote Desktop for Administration)2, plus the console sessionNone
RD Session Host role installedLimited by hardware and the number of CALsOne RDS CAL per user or per device (120-day grace period)

The two admin sessions are meant for managing the server, not for giving several people a desktop to work on. For that, Microsoft requires the RD Session Host role and RDS CALs.

Step 1: Make sure Remote Desktop is enabled

Open PowerShell as Administrator:

Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

Step 2: Allow more than one session per user

The setting Restrict Remote Desktop Services users to a single Remote Desktop Services session is on by default. A second login by the same user takes over the first session. To let each user open separate sessions:

Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name fSingleSessionPerUser -Value 0

Or with Group Policy (gpedit.msc): Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Connections → Restrict Remote Desktop Services users to a single Remote Desktop Services session → Disabled. Then run gpupdate /force.

Without the Session Host role, this still allows only two sessions in total.

Steps to allow multiple RDP sessions on Windows Server 2022: RD Session Host, licensing, single-session policy off
Allow multiple sessions

Step 3: Install the RD Session Host role (more than 2 sessions)

Install-WindowsFeature -Name RDS-RD-Server -IncludeManagementTools -Restart

After the restart the server accepts more than two concurrent sessions, up to the limit set in the Limit number of connections policy (unlimited by default). A 120-day licensing grace period starts now.

Comparison of the two default admin sessions and the RD Session Host role on Windows Server
Admin sessions or RDSH?

Step 4: Set up RDS licensing

Install the licensing role, on this server or on another server in your network:

Install-WindowsFeature -Name RDS-Licensing -IncludeManagementTools

Open Remote Desktop Licensing Manager (licmgr.exe), activate the server, and install your RDS CALs (Windows Server 2022 or later CALs, Per User or Per Device).

Then tell the Session Host which licensing mode and server to use. In Group Policy, under Remote Desktop Session Host → Licensing, set:

  • Use the specified Remote Desktop license servers: the licence server's name.
  • Set the Remote Desktop licensing mode: Per User or Per Device, matching your CALs.

The same settings from the command line:

$p = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
New-Item -Path $p -Force | Out-Null
Set-ItemProperty -Path $p -Name LicensingMode -Value 4          # 4 = Per User, 2 = Per Device
Set-ItemProperty -Path $p -Name LicenseServers -Value 'LICSERVER01'

Check the result with lsdiag.msc (RD Licensing Diagnoser). It should show no warnings.

Step 5: Check and manage sessions

query session            # or: qwinsta
query user               # who is logged on, idle time
logoff 3                 # sign out session ID 3
msg * "Server restarts in 10 minutes"

To stop disconnected sessions piling up, set time limits under Remote Desktop Session Host → Session Time Limits, for example ending disconnected sessions after one hour.

Security checklist

  • Keep Network Level Authentication on (the default).
  • Only add users who need access to the Remote Desktop Users group.
  • Restrict RDP to known IP addresses in Windows Firewall or your provider's firewall, or put it behind a VPN or RD Gateway.
  • Turn on an account lockout policy to slow down password guessing.

Avoid "RDP Wrapper" tools and patched termsrv.dll files. They break with Windows updates, and using them to get around RDS licensing breaches Microsoft's licence terms.

Frequently asked questions

How do I allow more than 2 RDP sessions on Windows Server 2022?

Install the Remote Desktop Session Host role (Install-WindowsFeature RDS-RD-Server) and license it with RDS CALs through an RD Licensing server. Without the role, Windows Server allows only two concurrent admin sessions.

How many RDP sessions are allowed on Windows Server 2022 by default?

Two concurrent Remote Desktop sessions for administration, plus the local console session. Windows Server 2019 and 2025 have the same default.

Can the same user have two RDP sessions?

Yes. Set fSingleSessionPerUser to 0, or disable the Restrict Remote Desktop Services users to a single session policy.

What happens when the 120-day RDS grace period ends?

If no licence server with valid CALs has been configured, the Session Host refuses new user connections. Administrators can still connect with mstsc /admin to fix the licensing setup.

Do I need RDS CALs for two admin sessions?

No. The two Remote Desktop for Administration sessions are included with Windows Server.

Minakshi, Server Administrator L1 at 99RDP
Written byMinakshiServer Administrator L1, 99RDP. Part of the team that runs our servers and answers support.
Keep reading

More Windows Server guides

All Windows Server guides

Need a server for this?

✓ Setup in minutes✓ Full admin access✓ 7-day refund on new services