Checking Certificate Expiration Dates (On-Premises)

Table of Contents

With the following line, you will receive a list of certificates that will expire within the specified number of days. In our example, the number of days is 300 (“ExpiringInDays”).

get-childitem -path cert: -recurse -Expiringindays 300 | Select-Object Issuer, NotAfter, Subject, FriendlyName | FL

You will receive a list of certificates with details, including expiration dates.

Was this article helpful?

Please, contact us if you have any additional questions.