I have implemented this script
in my domain. However, the script still sends an email out for accounts that are set not to expire and to disabled accounts.
Does anybody have any suggestions to prevent the notifications for these two cases? The desired outcome of the script is to only send the notification out to enabled users with an expiring password.
Thank you in advance.