PowerTip: Use PowerShell to Find Expiring Certificates


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

Comments (5)

  1. emilio says:

    And in months?

  2. lorenzo23 says:

    Is there are way to do check certificates for multiple users across a domain?

  3. Claus T Nielsen says:

    One thing to remember is that tarchived certificates will not show up unless you use the -Force parameter on get-ChildItem

Skip to main content