Black screen after login to RDS server

Update KB3172614 (July) and KB3179574 (August), seems to break rdpcorets.dll.
Microsoft is working on a update, but we still have this issue on a couple of RDS servers.

I have implemented a temporarily fix, which restarts the TermService then the black screen appears.

  1. Create a .bat file which have the following lines in it:
    sc config TermService type= own
    taskkill /FI "SERVICES eq TermService" /F
    sc start TermService
  2. In the Event Viewer find a log which has the event ID code 4005, and create a Task Schedule for that.
  3. Go into Actions and find the .bat you just made and add it.

After that, your Task Schedule should restart the TermService and the users will be able to log on after that.
For me it takes about 30 seconds, then the TermService service is killed the rest of the users which is logged on will be disconnected, but not logged of.

Sources:
https://community.spiceworks.com/topic/1570976-server-2012-rds-winlogon-process-crashing-event-id-4005-black-screen?page=4
https://social.technet.microsoft.com/Forums/Lync/en-US/4052abbc-e98c-4a94-9255-ae92deb686d2/event-4005-winlogin-windows-logon-process-has-unexpectedly-terminated?forum=winserverTS&prof=required