question

JianC-5127 avatar image
0 Votes"
JianC-5127 asked ·

Limit of Remote Desktop connections

I have the RDP User CALS installed, and it worked well in the past few months. Today I found I can only log on with the administrator account, when I use other accounts, it always shows "The number of connections is limited and all connections...".
I have edited the max connection number of the local group policy, the licensing settings were also enabled.

windows-remote-desktop-serviceswindows-remote-desktop-client
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RachedChader avatar image
0 Votes"
RachedChader answered ·

Hi @JianC-5127

Have you tried to see the number of connected users?

In a powershell type the following command: quser

Compare the number of logged in users vs the number of RDS cals to see if the number is reached.

Have you created a GPO to disconnect inactive / disconnect sessions ?

What is the setting put here:

56900-2021-01-15-08h08-15.png




Please don’t forget to "Accept the answer" and` up-vote` wherever the information provided helps you, this can be beneficial to other community members


· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I check the connected users, just one administrator. I purchased 50 RDS User CALs, it shouldn't exceed.

I haven't created the GPO since currently I just have less than 10 users to connect the server.

Thanks.

0 Votes 0 ·

Hi

have you specify the rd licensing ?

57057-2021-01-15-10h20-05.png



Regards

0 Votes 0 ·
ElevenYu-MSFT avatar image
0 Votes"
ElevenYu-MSFT answered ·

Hi,

Please check if you have set below group policies on the RDS Server.

Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Licensing
Use the specified Remote Desktop license servers - input the IP address or host name of the licensing server
Set the Remote Desktop licensing mode - Per User or Per Device (according to the CALs type)

Also, make sure you have activated the licensing server and installed RDS CALs successfully as per below instructions. In the previous months, it worked well might be because it still in the grace period.

Make sure there is "green-tick" mark before the server and there are still available CALs can be issued.
57072-image.png
https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-activate-license-server
https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-install-cals



If all above is set correctly, you can try below group policies on the RDS Server, which can log off the disconnect sessions.
Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits
Set time limit for disconnected sessions
End session when time limits are reached

Thanks,
Eleven


If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.


image.png (29.5 KiB)
· 3 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm sure I have correctly set the group policies on the RDS Server.

However, I found it seems to be weird that I have the "green-tick" but the CALs wasn't been issued (shown in the attached picture).

Thanks.


56958-image.png


0 Votes 0 ·
image.png (29.6 KiB)
  1. Are your licensing server and RDS server the same server? What version are they? RDS CAL version must match the RDS server and licensing server version.

  2. Is your RDS environment domain-joined? If it is in workgroup environment, only per-device cals can be used.

  3. And is there any other role installed in your RDS deployment, such as RDCB, RD Gateway and so on?

0 Votes 0 ·
  1. I think so, the RDS server is Windows Server 2016 Datacenter, the License version is Windows Server 2016.

  2. I'm not sure about the RDS environment, can you please let me know how to check that? I'm new to this and don't know how to check some settings.

  3. I think no, here is the screenshot.
    57311-image.png

  4. By the way, I found another strange bug. I cannot log on with the administrator account via the Remote Desktop Connection, it will shows "The number of connections is limited and all connections...", but I can log on via the RDP file downloaded from the Azure (screenshot attached).

57234-image.png


0 Votes 0 ·
image.png (37.9 KiB)
image.png (58.7 KiB)
ElevenYu-MSFT avatar image
0 Votes"
ElevenYu-MSFT answered ·

Hi,

  1. On your RDS Server (also the licensing server), open control pannel>System and Security>System>Computer name, domain, and workgroup settings, check if this server has joined any domain and if the domain name is the same as the users' domain who need to remote connect to the server.
    57521-image.png

  2. On the RDS server, run PowerShell as administrator, input Get-WindowsFeature | Where Installed. It will show all the services and roles you have installed on this server. Please check what roles have been installed under Remote Desktop Services. (For example, the screenshot in my environment shows only remote desktop session host role has been installed)
    57424-image.png

  3. If you use Remote Desktop Connection, even Administrator account needs CAL for remote connection. Since the CAL cannot be issued for some reason, so you also cannot use administrator account to log on. You can only use administrator mode to connect. (run command "mstsc /admin" or RDP file downloaded from the Azure)


Thanks,
Eleven


If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.




image.png (41.5 KiB)
image.png (60.2 KiB)
· 11 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JianC-5127

Is there any update? Please let us know if you have any further question.

0 Votes 0 ·

Sorry for the late... I forget which account I use for logging...
I think the problem is that it is in a workgroup environment. Is there any way to change it to the domain-joined? We have already purchased the per-user CALs and it cost a lot...
70771-image.png


0 Votes 0 ·
image.png (8.5 KiB)

Hi, it seems you didn't receive the notifications here. Can you please check the problem I posted in the reply last week?
73583-image.png


0 Votes 0 ·
image.png (39.8 KiB)

Hi,

control pannel>System and Security>System>Computer name, domain, and workgroup settings>Change settings>Change>Input the domain name
73575-image.png
73576-image.png


0 Votes 0 ·
image.png (13.4 KiB)
image.png (82.6 KiB)

Hi, thanks for the reply!
Do I need to configure / create a domain setting before that?
And after the setting, if other users want to connect to the server via the remote desktop, do they need to change some settings on their computers?
Thank you very much for the help!

0 Votes 0 ·
Show more comments