PowerTip: Find Expiring Certificates by Using PowerShell

Doctor Scripto

Summary: Boe Prox shows how you can find certificates that are expiring.

Hey, Scripting Guy! Question How can I find if I have any certificates on my system that are expiring within 30 days?

Hey, Scripting Guy! Answer Use the ExpiringInDays dynamic parameter when working with the certificate provider, for example:

Get-ChildItem Cert:\LocalMachine\My\ -ExpiringInDays 30 |

Select-Object Thumbprint, Subject, NotAfter

0 comments

Discussion is closed.

Feedback usabilla icon