If you manage a Windows Server 2019 environment with Remote Desktop Services (RDS), you have likely encountered the file termsrvdll.dll . While it may look like an obscure system library at first glance, this DLL plays a pivotal role in the licensing mechanism of Remote Desktop Services. Misconfigurations, corruption, or version mismatches involving termsrvdll are common culprits behind “The remote session was disconnected because there are no Remote Desktop Licensing Servers available” errors.
This re‑registers the DLL with the COM infrastructure used by Remote Desktop Services.
This should only be done on non‑production servers under strict guidance. Resetting the grace period incorrectly can permanently disable RDS.
If termsrvdll is intact but claims the grace period is expired, use licensingdiag.exe tool: