Problem probably caused because Terminal Services Licensing Server wasn’t activated at install time. Activeate it by
On client PC run Regedit and rename HKEY_LOCAL_MACHINE\software\microsoft\mslicensing to HKEY_LOCAL_MACHINE\software\microsoft\mslicensing.backup.
No need to restart PC to take effect.