Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Remote Desktop server certificate renewed twice a day although valid for a year

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

An administrator sets up a certificate template for Remote Desktop servers, with a validity of one year, and points the servers at it by Group Policy. The servers should enrol once and then leave the certificate alone for most of a year. Instead each server asks the certification authority for a new certificate twice a day, events keep appearing in the System log, and if the certificates are published to Active Directory the directory database grows and replication starts to log warnings.

Microsoft's page for this symptom names one cause and one fix, both about two names on the template. Below are how to confirm the cause, the fix in the order that is safe to carry out, and what to check afterwards. Nothing before the Fix section changes anything.

What the error means

Microsoft describes the scenario: you want a Remote Desktop server to provide server authentication by using a Secure Sockets Layer (SSL) certificate, and you configure a certificate template for Remote Desktop servers by following Microsoft's guidance on configuring Remote Desktop certificates. The servers then re-request and re-enrol the certificates two times daily, even though the certificate template is valid for one year. Some events are logged in the System log when the re-enrolment happens; the page does not give their event numbers.

The page also describes two consequences. If the enrolled certificates are automatically published to Active Directory, "the size of the Active Directory database will increase significantly because of the constant re-enrollment of the certificate". And Active Directory replication may pause and report warning events. A fault that looks like a certificate nuisance on one server can therefore become a directory-wide problem when many servers repeat it every day.

Likely causes

Microsoft names one cause: it "is related to the RDS component and to a mismatch within the certificate template". The detail is: if the template name and the template display name are different, the Remote Desktop Services (RDS) service does not match the existing certificate to the template, and the RDS service periodically enrols a new certificate.

Condition What you see How to check
Template name and template display name differ Each server enrols a new certificate about twice a day Compare the two names in the template's properties on the certification authority
The Group Policy setting names a different template than the one servers hold certificates from The server cannot find its certificate by the name in policy Compare the template name in the policy with the template name of the certificate in the server's store (general advice)
Enrolled certificates are auto-published to Active Directory The directory database grows and replication reports warnings Watch directory size and replication warnings, which Microsoft's page mentions as the consequences

Only the first row is Microsoft's cause. The second row is our reading of what "does not match the existing certificate to the template" can involve, offered as a thing to check rather than a finding. The third row is a consequence, not a separate cause, but it is where the cost of leaving the fault shows up first.

Prove the cause before changing anything

All of these read only.

  1. Look at the template's two names. On the computer where the enterprise certification authority is installed, open the Certificate Templates console and open the properties of the Remote Desktop template. The General page has the Template display name and the Template name. Microsoft's blog post on configuring Remote Desktop certificates says to set both to the same string, "RemoteDesktopComputer", and notes that it is important to use the same string for both properties. If your two values differ, you have found Microsoft's cause.

  2. Look at what the servers are told to use. In the Group Policy Management Console, open the policy that applies to the Remote Desktop servers and read the Server Authentication Certificate Template setting. Microsoft's page gives its location as Computer Configuration\Policies\Administrative Templates\Windows Components\Terminal Services\Terminal Server\Security. The blog post gives the same setting under Windows Components\Remote Desktop Services\Remote Desktop Session Host\Security. Note the value.

  3. Count the certificates. On one affected server, open the Certificates snap-in for the Computer account and look at the certificates issued from the template. Several certificates with close issue dates, and a new one appearing about twice a day, show the loop. The page does not describe this check; it is our own, based on its description of re-enrolment.

  4. Read the System log around the time of a re-enrolment. Microsoft says events are logged but gives no event numbers, so note them yourself for the report.

  5. If certificates are published to Active Directory, look at replication warnings on the domain controllers. Microsoft names them as a consequence.

Example (illustrative): at contoso.com.au the Remote Desktop template was created by duplicating the Computer template. Its display name is Remote Desktop Computer and its template name is RDComputer. The Group Policy setting names RDComputer. Each of the four session hosts holds a dozen certificates dated within one week. The two names differ, which is the mismatch Microsoft describes. No other template at contoso.com.au uses the name RemoteDesktopComputer, so the steps below can create a new template with that name for both attributes and then point Group Policy at it.

Fix

Microsoft's resolution has two parts. The two attributes, Template Display Name and Template Name, must be set to the same value, "such as RemoteDesktopComputer". Then the Group Policy setting must be updated "based on the new template name". The page's Important note repeats that you must set both attributes to the same value.

Microsoft's page does not say whether to edit the existing template or to create a new one, and does not say how to change the Template name of an existing template. The blog post shows the template being created from the Computer template: you duplicate it, choose the Windows Server 2003 Enterprise template version, and on the General page set both the Template display name and the Template name to RemoteDesktopComputer. That creation path is the one Microsoft documents for getting two equal names, so the steps below follow it: the existing template is left as it is, and a new template with matching names is created, published and then named in Group Policy.

Create a template whose two names are identical

Risk: the next step adds a new certificate template to an enterprise certification authority and then publishes it. A published template is available to be requested by computers that Group Policy points at it, and a mistake in the new template's settings (the blog post's application policy choices, for example) would be inherited by every certificate issued from it. Ask the people who run the certification authority before you start, and use the new template only for Remote Desktop servers.

Before changing anything, record the current Template display name, Template name and validity period of the existing Remote Desktop template, and the name of the template currently in the Group Policy setting. Take screenshots of the General page. The page gives no command for this, so it is general advice, and the record is what lets you reverse the change.

On the computer that has the enterprise certification authority, open the Certificate Templates console, find the Computer template, right-click it and choose Duplicate Template, and choose the Windows Server 2003 Enterprise template version. On the General page of the new template, set both the Template display name and the Template name to RemoteDesktopComputer. The new template needs a Template name that no existing template already uses; if the existing template already holds that name, choose another string and use it for both attributes and in the Group Policy step. Microsoft's blog post then sets the application policies on the Extensions page: either remove Client Authentication and leave Server Authentication, or use the special Remote Desktop Authentication policy. Then publish the template: in the Certification Authority snap-in, right-click Certificate Templates, choose New > Certificate Template to Issue, select RemoteDesktopComputer and click OK.

To undo it: the existing template was never edited, so nothing needs putting back on it. Point the Group Policy setting back at the name you recorded (next step), and have the certification authority's administrator stop issuing the new template. Microsoft's pages give no steps for removing a published template, and certificates already issued from it are not recalled.

Point Group Policy at the new template name

Risk: the next step changes a Group Policy setting that every Remote Desktop server in its scope reads. Each of those servers will request a certificate from the template you name, so a wrong name makes them all request a certificate that does not exist. Type the name exactly, and scope the policy first to one test server.

In the policy, open Computer Configuration > Policies > Administrative Templates > Windows Components > Terminal Services > Terminal Server > Security, double-click Server Authentication Certificate Template, enable the policy, and type the new template name in the Certificate Template Name box. Microsoft says that after the server receives the new setting during background Group Policy processing, the certificates are no longer renewed twice daily. To bring the setting in sooner on one computer, the blog post says you can run the gpupdate.exe command line tool on it.

To undo it: set the policy back to the template name you recorded, or to Not configured if it was not configured before, and run gpupdate on the affected servers.

Confirm the fix

  • A test server keeps one current certificate from the template and does not add a new one after two days. Allow at least two daily cycles before you decide.
  • The System log events that appeared at each re-enrolment stop.
  • If you publish to Active Directory, growth in the directory database slows and the replication warnings stop.
  • The certificate shows the template name you set. Remote Desktop clients still connect without a new certificate warning.

What to watch afterwards

  • Any other template named in the Server Authentication Certificate Template setting. The Security page's Important note says its two names must be the same.
  • Certificates left over from the loop. Microsoft does not describe cleaning them up, so ask the certification authority's administrator how to handle them.
  • Directory size and replication warnings, which Microsoft names as the early signs.
  • Changes to the template name later. Both names must be kept the same, as Microsoft's note says.

Risks and limits

These steps have not been run or lab-tested.

Microsoft's page, last updated on 2026-02-12, gives no version range, no figure for how many certificates accumulate and no event numbers. It does not say how to edit the Template name of an existing template; the creation steps come from a Microsoft blog post first published in 2010, which uses the older Windows Server 2003 Enterprise template version. The Group Policy path appears under both the Terminal Services and the Remote Desktop Services names, and your server's own wording may differ. Check the current pages. A mistake in a certificate template or in the setting can stop Remote Desktop servers from presenting a certificate at all, so test on one server first.

Sources