Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / Remote Desktop fix: The number of connections to this computer is limited

February 7, 2025

Remote Desktop fix: The number of connections to this computer is limited

When connecting to a remote computer via RDP, you may receive a blue screen error indicating that you have exceeded the maximum number of connections allowed. In my case, the problem occurred with users on Windows Server 2022 with the Remote Desktop Services (RDS) role.

The number of connections to this computer is limited and all connections are in use right now. Try connecting later or contact your system administrator.

RDP error: The number of connections to this computer is limited and all connections are in use right now

If you are experiencing this error, the first step is to determine which version of Windows is running on the remote computer. Different versions of Windows have different limits for the maximum number of concurrent RDP sessions.

  • Maximum one simultaneous RDP connection to desktop versions of Windows 10 and 11 (Pro or Enterprise edition)
  • Two administrative RDP sessions (+ one console connection) to a computer running Windows Server 2022/2019/2016, etc.
  • If the Remote Desktop Services role is installed on a Windows Server host and it is configured to get terminal licenses from an RDS licensing server, the maximum number of connections is limited by the number of available licenses (RDS CALs)

If the problem occurs on a Windows Server RDS host with a sufficient number of free RDS CALs, or on Windows 10/11 with an unofficial termsrv patch or RDP wrapper (which removes the limit on the number of simultaneous RDP connections), make sure that there is no limit set on the maximum number of RDP connections.

Check the registry value using the PowerShell console:

$key = "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services"
(Get-ItemProperty -Path $key -Name MaxInstanceCount -ErrorAction Ignore).MaxInstanceCount

By default, this registry option should not exist. The command returned a value of 1 in this example. This value defines the maximum number of RDP connections on this host.

To increase the max connections value, open the Local GPO Editor snap-in (gpedit.msc) and go to Computer Configuration -> Administrative Templates -> Windows Components ->Remote Desktop Services ->Remote Desktop Session Host -> Connections. Enable the Limit number of connections policy and change its value to 999999. Reboot the RDP host to apply the new termsrv service settings.

Check the Limit number of RD connections

In the same way, check the ‘MaxInstanceCount’ parameter in another registry key. If necessary, increase the value manually:

$key = "HKLM:\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp"
(Get-ItemProperty -Path $key -Name MaxInstanceCount -ErrorAction Ignore).MaxInstanceCount

Also, check that the Restrict Remote Desktop Services users to a single Remote Desktop Services session policy is disabled (or not set).
$key = "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services"
(Get-ItemProperty -Path $key -Name fSingleSessionPerUser -ErrorAction Ignore).fSingleSessionPerUser

GPO: Restrict Remote Desktop Services users to a single session

If the RDP connection exhaustion error occurs randomly on clients, try modifying the following registry settings on the affected computers:

REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v MaxConnectionsPer1_0Server /t REG_DWORD /d 10
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v MaxConnectionsPerServer /t REG_DWORD /d 10

If nothing helps:

  • Kill some active or idle user sessions on a host (or reduce RDP session timeouts for disconnected and inactive sessions).
  • Restart the Remote Desktop Services service: Restart-Service TermService -Force
  • Reboot the RDS host.
0 comment
1
Facebook Twitter Google + Pinterest
Questions and AnswersWindows 10Windows 11Windows Server 2019Windows Server 2022
previous post
Collecting Windows and Active Directory Event Logs with Graylog
next post
How to Configure Windows Firewall Logging and Analyze Logs

Related Reading

Create a Custom Windows Image with Pre-installed Apps

February 28, 2024

Upgrading to Windows 11 on Unsupported Hardware

March 6, 2024

How to Assign (Passthrough) a Physical GPU to...

June 11, 2024

Configuring RemoteApps Hosted on Windows 10/11 (without Windows...

January 25, 2025

Disable BitLocker Automatic Drive Encryption in Windows 11

October 16, 2024

Enable Hyper-V on Windows 10/11 Pro and Home...

August 12, 2024

Fix: Your IT Administrator Has Limited Access to...

March 22, 2024

Disable and Completely Remove Widgets from Taskbar in...

September 26, 2024

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Fix: Windows Update Tab (Button) is Missing from Settings
  • Fix: Your IT Administrator Has Limited Access to Virus & Threat Protection
  • Permanently Disable Driver Signature Enforcement on Windows 11
  • How to Add or Reinstall the Microsoft PDF Printer on Windows
  • Fix: Multiple Connections to a Server or Shared Resources by the Same User
  • Cannot Install Language Pack on Windows 10 or 11
  • How to Pause (Delay) Update Installation on Windows 11 and 10
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top