Event ID:1219 Logon rejected for . Unable to obtain Terminal Server User Configuration. Error:

First, check the time is sync with domain controller.
Access to user’s domain was prohibited by a firewall.
This solved the problem for me:))
1.) Open up regedit on the server (Start-Run-Regedit)
2.) Follow this string: HLM\System\CCS\Control\Terminal Server
3.) Go to Edit/New Dword
4.) Name the new Dword the following: IgnoreRegUserConfigErrors
5.) Right click on IgnoreRegUserConfigErrors and choose modify
6.) Enter the value data=1