Okay, Microsoft Graph API is cool, but sometimes it's boring to deal with all these hashtables and arrays. If necessary, you could restrict the list of servers by specifying certain OUs with the SearchBase parameter; alternatively, you could read them from a text file. In most browsers, you can view the SSL certificate by clicking on the padlock icon in the address bar. Once the new certificate is installed, you should be all set! This serial has a serial number of 40:01:6e:fb:0a:20:5c:fa:eb:e1:8f:71:d7:3a:bb:78. So i added this line above the ParseExact line: Not the answer you're looking for? Please find the script below in text and as attachment also at the end of the blog. Then if any expired or expiring certificates are found, you will be notified by an email and a popup message. SSL Certification Expiration Checker. This can be a file, website/internet site, or a list. ', $CCAddress = 'emailaddress@domainname.com', Send-MailMessage -From $FromAddress -To $ToAddress -Cc $CCAddress -Subject $MessageSubject -Body $Emailbody -BodyAsHtml -SmtpServer $SendingServer -Port $SmtpServerPort, # --------------------------------------------------,