No remote desktop server can provide license
【Problem Description】
Windows Server remote login prompt "No remote desktop server can provide license, remote session connection is broken"
【Solution Description】
Cmd enter regedit and navigate to the registry path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
Modify registry permissions


click“change”

Enter the host name \administrator and click check name



Delete redundant registry key values, only keep default


Please restart the server after deleting.
【Root Cause】
By default, Windows Server can only allow two people to log in at the same time. More than two people need to be charged. After the RDS license is installed, there is only a 120-day period of use. After the expiration, you need to re-apply for the RDS license. Deleting the registry key is only a temporary circumvention scheme, and there will still be an expiration problem later. See the official link for a detailed description of the period of use.
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc725933(v=ws.11)