How To Limit Number Of Remote Desktop Connections

In this article, learn how to limit number of Remote Desktop Connections on a Remote Desktop Session Host (RDSH) server.

Kapil Arya
11x Microsoft MVP · Admin
2 min read
Add as a preferred
source on Google

By default, Remote Desktop Session Host (RDSH) server allows unlimited number of Remote Desktop Services sessions. RDSH is basically that server, where Remote Desktop Session Host role service is installed. But allowing unlimited RD connections may decrease performance of the server.

Being a system administrator, you can improve the performance of server by limiting RD connections. When you limit number of RD connections, only few sessions you specified, will be allowed. Rest of the connections will get be denied with server busy message.

Here is how you can limit number of RD connections on your server.

How To Limit Number Of Remote Desktop Connections

1. Open Group Policy Management window by running gpmc.msc command.

2. Create a GPO and right click on it, select Edit.

3. In Group Policy Management Editor, navigate to following location:

Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections

How To Limit Number Of Remote Desktop Connections

4. In right pane of Connections folder, look for Limit number of connections GPO setting. Double click on it to modify its status:

How To Limit Number Of Remote Desktop Connections

5. Set the policy status to Enabled. Under Options, set RD Maximum Connections allowed to number of connections you want to allow. Click Apply, followed by OK.

6. Close Group Policy Management window. Run gpupdate /force to make changes effective.

If you later need to find out whether if this policy is in effect or not, try this. Open an administrative Command Prompt and execute this command:

gpresult /H c:\gpresult.html

Then go to C: drive and open gpresult.html in your favorite browser. If it includes Limit number of connections GPO setting at its location mentioned in step 3 above and status is Disabled, RDP connections won’t be limited. But if the setting is Enabled, you need to check Winning GPO. To make modifications to the policy, click on Edit. You can then again use gpupdate /force to update your changes.

That’s it!

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

Share this article
https://www.kapilarya.com/how-to-limit-number-of-remote-desktop-connections

Shareable URL

Article by

Kapil Arya
11x Microsoft MVP · Admin

Kapil holds Microsoft MVP title in Windows IT Pro expertise, 11-times in a row (2014-2025). He is 8-times Windows Insider MVP as well, and author of 'Windows Group Policy Troubleshooting' book. In 2015, Microsoft India accomplished him as 'Windows 10 Champion'. Being passionate Windows blogger, he loves to help others on fixing their system issues. Kapil has worked with official Microsoft Community Engagement Team (CET) on several community projects. You can subscribe him for news/updates and fixes for Windows.

Leave a Comment

Your email address will not be published. Required fields are marked *