Event ID - 1004

Event Id1004
SourceTermService
DescriptionThe terminal server cannot issue a client license.
Event InformationThere are many situations which will lead to this event. Here is one out of many.
For more causes and resolution information click on the following link to Microsoft article given below.

As per Microsoft: "This issue may occur if a certificate on the terminal server is corrupted".After you upgrade a Windows NT domain to Windows 2000 or Windows Server 2003, Windows 2000 Terminal Services clients may be repeatedly denied access to the terminal server. If you are using a Terminal Services client to log on to the terminal server, you may receive one of the following error messages.
Because of a security error, the client could not connect to the Terminal server. After making sure that you are logged on to the network, try connecting to the server again.
-or-
Remote desktop disconnected. Because of a security error, the client could not connect to the remote computer. Verify that you are logged onto the network and then try connecting again. and this event id will will be logged in, along with some more events( click below link for more information).

CAUSE:
 
This issue may occur if a certificate on the terminal server is corrupted.
Reference LinksEvent Message 1004 Terminal Services Licensing When You Use the Citrix ICA Client

Event ID 1004 and "Network or Dialup Problems Are Preventing Communications with Citrix Server" Error Message When Clients Try to Connect to Terminal Server

Event ID 1004 is logged when a thin client tries to obtain a license from a Windows Server 2003-based terminal server

Because of a security error, the client could not connect to the Terminal Server

Event ID 1004 is logged when a thin client tries to obtain a Terminal Services license

"Network or Dialup Problems Are Preventing Communication with the Citrix Server" Error Message When You Connect to Citrix MetaFrame

Clients Receive "Error 1000 No Licenses Are Available" When Logging on to Terminal Server

" Terminal Server Has Ended the Connection" error message

Cannot Connect to a Terminal Server from a Windows-Based Terminal

How to Troubleshoot Black Hole Router Issues

Did this information help you to resolve the problem?

Yes: My problem was resolved.
No: The information was not helpful / Partially helpful.