Hello Handian,
The discrepancy comes from the Certificate Authority’s configured maximum validity period, not the template itself. Even though your template is set to 5 years, the CA enforces its own upper limit defined in the registry under HKLM\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\<CAName>\PolicyModules\CertificateAuthority_MicrosoftDefault.Policy\MaxValidityPeriod. By default, most enterprise CAs restrict user certificates to 2 years unless this value is explicitly extended. The certificate issuance process always honors the shorter of the two values: the template validity or the CA’s maximum validity.
To align the issued certificate with your 5‑year template, you need to update the CA’s maximum validity period in the registry and then restart the Certificate Services. Be aware that extending user certificate lifetimes beyond 2 years is generally discouraged from a security standpoint, and Microsoft’s best practice is to keep user certs at 1–2 years to reduce exposure. If you still require 5 years for operational reasons, adjust the CA policy accordingly, but ensure you have strong revocation and monitoring in place.
If the above response helps answer your question, please hit "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
Harry.