Solution:
1. Win key + R to open the runner, and use the mstsc -admin command to force the remote
2. Enter the remote server ip, user name and password, ignore the prompt box of the certificate question, and you can connect to the remote desktop
3. In the remote desktop, open the running box of the remote server, and use the regedit command to open the registry
4, Enter Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
5. Right-click "GracePeriod", click Permissions, and then click Advanced
6. Select the Administrator user, double-click to open the permission item, check Full Control, and click OK
7. Select the Administrator user, double-click to open the permission item, check Full Control, and click OK
8. After modification, obtain the permissions, delete the registry, and restart the server after deletion
Finally, restart the server to restore the remote desktop connection;