Showing results for 
Search instead for 
Did you mean: 
Create Post

THWACK Tuesday Tip :: How to Monitor Changes to Local Certificates

Community Manager


How to Monitor Changes to Local Certificates
How to Monitor Changes to Local Certificates
December 24, 2019

Local certificates provide a multitude of security benefits. From encrypting emails and allowing easier authentication, to securing connections between web browsers and your web servers, they're a necessary part of any network. Learn how to monitor changes to local certificates with SolarWinds® Server Configuration Monitor.
Level 8

Hi Kevin,

Where can I find the text of that Powershell script?  I like to try it out, can you provide a link or the text?


Community Manager
Community Manager

I wrote about this script (and others) on this Product Blog: Manage and Monitor PowerShell Scripts

But here is the script if you need it immediately.

$AllCertificates = Get-ChildItem -Path Cert:\LocalMachine\My -Recurse

# Create an empty list to keep the results

$CertificateList = @()

ForEach ( $Certificate in $AllCertificates )


    # Check to see if this is a "folder" or a "certificate"

    if ( -not ( $Certificate.PSIsContainer ) )


        # Certificates are *not* containers (folders)

        # Get the important details and add it to the $CertificateList

        $CertificateList += $Certificate | Select-Object -Property FriendlyName, Issuer, Subject, Thumbprint, NotBefore, NotAfter



$CertificateList | Sort-Object -Property FriendlyName

About the Author
Kevin's first computer was the family TI-99/4A. He's learned computing the best way possible: by fixing his own broken machines. He was a SolarWinds customer for nearly 10 years before joining the company. He's worked the range of IT jobs: from the 3-person consultancy to the international law firm. Along the way, he's become a SolarWinds advocate and evangelist of monitoring glory. His passions include shooting archery, blacksmithing, playing D&D, and helping IT professionals leave at a reasonable time each and every day.