Thanks for the great script!
Sorry If this is just me missing something obvious but I've noticed accounts that are used (in our case) for shared mailboxes and don't need to be logged into and therefore have probably expired are getting email notifications when I run this script.
I've attached a photo that shows their password dates, If I go into the AD user and set it to do not expire they disappear from the list but I've already configured a PSO that doesn't have any password age set that these users are part of so I thought this would get ignored by the script.
Am I missing something obvious here?

Thanks for the great script!
Sorry If this is just me missing something obvious but I've noticed accounts that are used (in our case) for shared mailboxes and don't need to be logged into and therefore have probably expired are getting email notifications when I run this script.
I've attached a photo that shows their password dates, If I go into the AD user and set it to do not expire they disappear from the list but I've already configured a PSO that doesn't have any password age set that these users are part of so I thought this would get ignored by the script.
Am I missing something obvious here?