After restarting our Terminal Services 2003 Licensing server for the first time in about a year I found that it had stopped working.

The server appeared to no longer be activated and when I tried to activate the server I recieved the message “Internal Error: 0xc0110011” in the event log on the server I was also getting messages such as.

Event Type:    Error
Event Source:    TermServLicensing
Event Category:    None
Event ID:    38
Date:        04/05/2010
Time:        11:21:26
User:        N/A
Computer:    ********************
Description:
Can’t generate a license for client because of error ‘Can’t add certificate to store, error c0010020.
‘.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
I soon found that microsoft knowledge base document on the problem, and their resolution advises to re-install terminal services however for a couple of reasons I did not want to re-install so instead I used the below steps.

NOTE: A comment has been posted below linking to a hotfix which may resolve this issue see, http://support.microsoft.com/kb/983385. The steps below are what I followed prior to the release of this hotfix. I have not been able to verify if the hotfix resolves the issue or not but it does sound promosing. Please post if you have tried it.

1. Stop the terminal services licensing service

2. Delete the following registry keys

        HKLM\Software\Microsoft\TermServLicensing\Certificates.

HKLM\System\CurrentControlSet\services\TermservLicensing\Parameters\Certificates.000

HKLM\System\CurrentControlSet\services\TermservLicensing\Parameters\Certificates.001

3. Start the terminal services licensing service

At this point I then had the following event log messages

Event Type:    Information
Event Source:    TermServLicensing
Event Category:    None
Event ID:    6
Date:        04/05/2010
Time:        11:28:35
User:        N/A
Computer:    *****************
Description:
Regenerate public/private key by client ncalrpc: *****************

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 

Event Type:    Warning
Event Source:    TermServLicensing
Event Category:    None
Event ID:    18
Date:        04/05/2010
Time:        11:28:36
User:        N/A
Computer:     *****************
Description:
Terminal Server Licensing on server  ***************** has not been activated.  Terminal Server Licensing will only issue temporary

licenses until the server is activated.  See Terminal Server Licensing help topic for more information.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

In the MMC console the server was showing as activated but to be on the safe side

4. Reactivate the server in the MMC console by right-clicking the server and selecting Advanced => Reactivate Server, then follow the prompts

I found one website that stated that the prolem may have been caused by

“One Certificate in the chain issued by Microsoft Clearing house on Activation of License server expired on 26th Feb 2010.”