Windows - Certificates (My) - Local Machine - Audit
Overview
This Script audits all certificates in the local machine's personal certificate store and flags expired or soon-to-expire certificates. It then updates the custom field cPVAL SSL certificate Audit with the SSL certificate details and also sets the custom field cPVAL Expired SSL Certificates Detected to True if any expired or soon-to-expire certificates are found during the audit.
Sample Run
Play Button > Run Automation > Script

Dependencies
- Solution - SSL Certificate Audit
- Custom field - cPVAL SSL certificate Audit
- cPVAL Expired SSL Certificates Detected
Parameters
| Name | Example | Accepted Values | Required | Default | Type | Description |
|---|---|---|---|---|---|---|
| SSL Cert Expiry Threshold | 15 | Numeric Values | False | - | Text | Set the number of days before SSL certificate expiration to detect and report certificates requiring attention. |
Note : SSL Cert Expiry Threshold should be similar to Script : SSL Certificate Expiration Monitoring to alert for the certificates that are expired or soon to expire.
Automation Setup/Import
Output
- Activity Details
- Custom Field
Changelog
2026-07-22
- Renamed the script from
SSL Certificate AudittoWindows - Certificates (My) - Local Machine - Auditsince this script pulls all certificates and not just SSL certificates on the machine.
2026-02-13
- Initial version of the document