Refresh RDP License Server

Every 120 days, the RDP license server needs to be refreshed. There's a script in the Admin Documents folder, under the scripts directory. It is set to run every 3(?) months using Task Scheduler, so this shouldn't need to be manually activated.

If you do need to manually activate:

cd C:\\Users\\Administrator\\Documents\\scripts
.\\reset_rdp.ps1
Restart-Service -Force -Name "TermService"

RDP License Server Stops Working

The Server Manager has an error that looks something like "The RD Licensing grace period has expired, the licensing mode for the remote desktop session host server is not configured". Use the Remote Desktop under Windows Administrative Tools/Remote Desktop Services/Remote Desktop Licensing Diagnoser to verify this issue. To solve, configure the server to use either per-device or per-user CALs. After this issue was first experienced 2022/07/30, Reid set it to per-user CALs. You can use the guide here to configure the mode through the registry.

Something about no licenses found on the license server: just reboot the server and it’ll be fine. I think the RDP license server refresh occurs as expected but needs to be restarted afterwards? TODO: maybe refresh the RDP server service in the powershell file? done