November 22nd, 2015

PowerTip: Find Expiring Certificates by Using PowerShell

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.