Forum Discussion

Dominique's avatar
Dominique
Icon for Advisor rankAdvisor
5 years ago

How to get the Certificate Common Name (FQDN) in the alerts description

Hello, I am using the two script from Cole McDonald: On 8/22/2019 at 9:11 AM, Cole McDonald said: I've lightened the load slightly on the winCertCheck (which is technically no...
  • Dominique's avatar
    5 years ago

    Thanks for your patience Stuart... 

    I found the location

    ##$store        = new-object System.Security.Cryptography.X509Certificates.X509Store( "\\##SYSTEM.SYSNAME##\root", $localMachine )##
    $store        = new-object System.Security.Cryptography.X509Certificates.X509Store( "\\##SYSTEM.SYSNAME##\my", $localMachine )

    Now I have the good certificate listed... I need to add as you said the expiration date set to combined both...

    Thanks,

    Dom