Applies to: Windows Server 2019, 2022 and 2025.
Auto-enrollment issues and renews certificates for managed computers or users based on template permissions and GPO scope.
PKI changes affect trust across the organization. Use an approved certificate policy, offline backups and separation of duties. Visit managed Windows VPS hosting.
Prerequisites
- Publish an auto-enrollment template.
- Grant Read, Enroll and Autoenroll.
- Use a test OU.
- Confirm CA chain and CRL reachability.
Procedure
Step 1: Create GPO
Use descriptive name.
New-GPO -Name 'PKI - Computer Autoenrollment'Step 2: Link to test OU
Target managed computers.
New-GPLink -Name 'PKI - Computer Autoenrollment' -Target 'OU=Test Servers,DC=corp,DC=example'Step 3: Enable policy
Configure Certificate Services Client - Auto-Enrollment under Computer Public Key Policies.
Step 4: Choose renewal options
Enable renewal, pending request and template update handling.
Step 5: Apply
Refresh and pulse enrollment.
gpupdate /force
certutil -pulseStep 6: Inspect store
Confirm expected certificate and key.
Verification
Review machine certificates and lifecycle events.
Get-ChildItem Cert:\LocalMachine\My | Select Subject,Issuer,NotAfter,HasPrivateKey
Get-WinEvent -LogName 'Microsoft-Windows-CertificateServicesClient-Lifecycle-System/Operational' -MaxEvents 50Rollback and recovery
Disable or unlink the GPO and remove Autoenroll permission. Revoke certificates only when policy requires.
Security notes
Effective scope is the intersection of GPO application and template permissions.
Official references
For a hosted environment with setup and onboarding, explore our managed Windows VPS plans.
How to Install an Enterprise Root Certificate Authority with PowerShell
Install a deliberately designed Enterprise Root CA with explicit cryptography, stable publication paths and restricted issuance, then…
How to Build an Offline Standalone Root CA for a Two-Tier PKI
How to Build an Offline Standalone Root CA for a Two-Tier PKIApplies to: Windows Server 2019, 2022 and 2025.An offline root signs…
How to Duplicate and Publish an AD CS Certificate Template
How to Duplicate and Publish an AD CS Certificate TemplateApplies to: Windows Server 2019, 2022 and 2025.Duplicating a built-in template…
How to Request and Install a Web Server Certificate from an Enterprise CA
How to Request and Install a Web Server Certificate from an Enterprise CAApplies to: Windows Server 2019, 2022 and 2025.A web certificate…
How to Revoke a Certificate and Publish a New CRL
How to Revoke a Certificate and Publish a New CRLApplies to: Windows Server 2019, 2022 and 2025.Revocation marks a certificate untrusted…