Problem connecting to the terminal server

After a Windows update, I couldn’t access the terminal server. It would try to connect, but the connection would immediately close. This happened on all terminal servers. Even those without the terminal service could connect just fine.