PowerTip: Find Expiring Certificates by Using PowerShell

Dr 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


Comments are closed. Login to edit/delete your existing comments