Windows2012 or 2016 remote connection prompts that the remote Desktop license server can provide a license and the remote session connection has been disconnected
The reason for this phenomenon is that the server is configured with multi-user login. Without authorization, it can only be used for 120 days by default. This error will occur when you connect remotely. The solution is as follows:
Delete the registry key: HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Control\ Terminal Server\ RCM\ GracePeriod and restart the server
Note: the registry key may not be deleted and the permission needs to be modified as follows:
Run gpedit.msc in user configuration-manage templates-system-prevent access to registry editing tools-disabled
Open the registry and change the GracePeriod key permissions
Delete the GracePeriod entry and restart the machine.