Certificate Expiry

Updated 31-05-2016: Numerous improvements include; better error-handling, progress indicators, option to delete already expired certificates etc. etc.

Jesper Arnecke asked me to rework one of my earlier scripts, to add some functionality and improve usability, so I did! 🙂
This script connects to the DC, gets a list of machines with the “OperatingSystem” value set to “*Server*”, if it can succesfully ping the machine(s), it will return a list of certificates that expire after the date specified and compile a CSV file of the results.