April 27th, 2014

PowerTip: Use PowerShell to Find Expiring Certificates

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to find certificates that are about to expire.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find certificates that are going to expire within 30 days?

Hey, Scripting Guy! Answer Use the certificate provider and the dynamic parameter –ExpiringInDays:

Get-ChildItem cert:\currentUser –Recurse –ExpiringInDays 30

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.

Feedback