Monthly Archives: November 2014

Check local certificate store for expired certificate

This script looks inside local machine certificate store for expired certificates. If found, it writes to the event log. [codesyntax lang=”powershell”] $ThresholdWarning = “60” #Set warning date $ThresholdError = “30” #Set error date New-EventLog -Source PKI -LogName Application -ErrorAction:SilentlyContinue $Certs … Continue reading

Posted in Powershell, Uncategorized | Comments Off on Check local certificate store for expired certificate