How to Audit RDS Certificates and Expiration Dates

audit-rds-certificates-expiration-cover

How to Audit RDS Certificates and Expiration Dates

An RDS certificate audit should answer three questions: which certificate is assigned, which certificate clients actually receive, and who will renew it before it expires.

Use these read-only checks to build that inventory. A certificate found in a store is only a candidate; it may be unused, while a different endpoint still serves an older certificate.

Before You Begin

  • Read access to deployment configuration and administrator access where needed to inspect local certificate stores and listener settings.
  • A list of brokers, RD Web servers, gateways, Session Hosts and external TLS endpoints.
  • A review interval and renewal warning period; the example below uses 60 days.
  • one

    List deployment role assignments

    Run the following from an RDS management machine with the RemoteDesktop module. Replace the broker name with the server that manages your deployment.

    PowerShell

    Import-Module RemoteDesktop
    Get-RDCertificate -ConnectionBroker 'rdcb01.ad.example.com' |
      Select-Object Role, Level, Subject, SubjectAlternateName, ExpiresOn, Thumbprint

    Review all configured roles, including the two broker certificate assignments. Record missing or untrusted assignments for investigation, but verify client-side trust separately before drawing a conclusion.

  • two

    Inspect certificates nearing expiry on each host

    On each relevant server, inspect Certificates (Local Computer) using certlm.msc. The read-only example below lists certificates in the Personal store that expire within 60 days, including already expired entries.

    PowerShell

    $reviewDeadline = (Get-Date).AddDays(60)
    Get-ChildItem 'Cert:\LocalMachine\My' |
      Where-Object { $_.NotAfter -le $reviewDeadline } |
      Select-Object Subject, Thumbprint, NotBefore, NotAfter, HasPrivateKey

    This query covers only that store on the local machine. Review additional stores and appliances used by your design. Determine which listed certificates are active before scheduling renewal or cleanup.

  • three

    Inspect the RDP listener separately

    On a Session Host or standalone RDP server, the following reads the listener's certificate reference. It does not change the binding.

    PowerShell

    Get-CimInstance -Namespace 'root/cimv2/TerminalServices' `
      -ClassName Win32_TSGeneralSetting -Filter "TerminalName='RDP-tcp'" |
      Select-Object TerminalName, SSLCertificateSHA1Hash, SSLCertificateSHA1HashType

    Compare the reference with the certificate stores and the certificate presented to a client. Check the Remote Desktop store as well as Personal where applicable. A self-signed or automatically selected listener certificate needs interpretation within your connection design, rather than an automatic deletion.

  • four

    Compare the actual endpoints and all farm nodes

    Inspect the public RD Web certificate in a browser and the gateway certificate through its configuration and a fresh client connection. Check each farm node and any load balancer or reverse proxy that terminates TLS.

    Record a mismatch between deployment configuration and the presented certificate as a separate finding. One healthy node can hide an expired certificate on another node if testing always reaches the same server.

  • five

    Include certificates outside the deployment list

    If MFA uses the Microsoft Entra NPS extension, add each NPS server's extension client certificate to the inventory. Its cloud registration and renewal process are separate from Set-RDCertificate.

    Also include issuing-chain dependencies, private-key access requirements and any automated renewal job. Do not assume a CA renewal or scheduled task automatically updates the role binding and every serving endpoint.

  • six

    Assign owners and verify renewal alerts

    For each active certificate, record the service, server or endpoint, subject and SANs, issuer, thumbprint, expiration, renewal owner and last successful client test. Track whether renewal is manual or automated.

    Choose alert dates that leave time for issuance and a maintenance window. After each renewal, rerun the audit and compare the live endpoint. The review is complete when the active certificate and its owner are known, not merely when a store scan finishes.

Frequently Asked Questions

Does an expired certificate in a store always mean an outage?

No. It may be unused historical material. Determine whether a live service still references or presents it before changing anything.

Can Get-RDCertificate find every certificate used by RDS?

Admin Note:These commands are inventory checks. Keep private keys and PFX files out of general audit reports, and validate service bindings before removing old certificates.

Planning Your RDS Deployment?

Review the RDS CAL requirements for your Session Hosts and users alongside your deployment configuration.

Author Bio

Mr. Keloth leads technical implementation at RDS CAL Store. He specializes in Remote Desktop Services infrastructure, secure remote architecture, and helping IT teams seamlessly scale their official licensing.

Microsoft Certified Professional

MCSE MCSA MCTS MCP MCP+I A+ Security+

With over 20 years of experience deploying and managing enterprise Windows Server environments, Keloth leads technical implementation at RDS CAL Store. He specializes in Remote Desktop Services infrastructure, secure remote architecture, and helping IT teams seamlessly scale their official licensing.

Related Posts

Understanding RDS CAL Downgrade Rights

July 12, 2025

Home – Understanding RDS CAL Downgrade Rights Understanding RDS CAL Downgrade Rights When managing a Remote Desktop Services environment, hardware and software upgrades rarely happen all at once. You might purchase new Client Access Licenses (CALs) today, but still need them to authorize connections to older servers running in your datacenter. Microsoft accommodates this reality…

How to Disable Remote Desktop Easy Print in Windows Server (2016-2025)

July 12, 2025

Home – How to Disable Remote Desktop Easy Print in Windows Server (2016-2025) How to Disable Remote Desktop Easy Print in Windows Server (2016-2025) Remote Desktop Easy Print is the default driver Windows uses to map local client printers into a remote session. While convenient, it strips away advanced printer features (like stapling, tray selection,…

How to Create a Remote Desktop User in Windows Server (2016, 2019, 2022 & 2025)

July 12, 2025

Home – How to Create a Remote Desktop User in Windows Server (2016, 2019, 2022 & 2025) How to Create a Remote Desktop User in Windows Server (2016, 2019, 2022 & 2025) Provisioning remote access for a new employee requires more than just creating a standard Windows account. To securely connect to a Session Host,…

How to Fix the CredSSP “Encryption Oracle Remediation” RDP Error

July 12, 2025

Home – How to Fix the CredSSP “Encryption Oracle Remediation” RDP Error How to Fix the CredSSP “Encryption Oracle Remediation” RDP Error If you are managing Windows Servers, you have likely encountered this terrifying error message when trying to connect via Remote Desktop: “An authentication error has occurred. The function requested is not supported… This…