Need a script to check AD and generate an email on password expiry

Hi,

I am looking for a script that checks Active Directory and sends a user an email when their password will expire in lets say 7 days.

Thanks in advance

Jamie

@wholeservltd ,

You can utilize this script for procedure https://scripts.comodo.com/frontend/web/topic/script-to-mail-the-password-expiry-report-of-all-users-in-active-directory