Password expiring reminder per script as email for OWA users

MikeGGG
MikeGGG used Ask the Experts™
on
Hello EE community,

I am running W2003 Domain
I have some (or better said, a lot of) mobile users who are using Exchange OWA (2007) only. They continiously forget to change their passwords.
After the password is expired they are unable to login and calling me about change their passwords.
Unfortunately they are often travelling around the globe and sometimes calling me for example at 2:00 AM :)
All these users are members of OWAusers group.
My idea is to build and daily run following script:
- make a query to get a list of members in the group OWAUsers
- for each user, check if his password is at least 5 days valid
- if not - send a mail to this user (read the email from AD)

Could anyone provide me with such script?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Expert of the Quarter 2009
Expert of the Year 2009
Commented:
This tool will do the job.
http://www.netwrix.com/password_expiration_notifier_freeware.html

Microsoft have a tool called PEWA which can be scripted, but I find it isn't very reliable. The freeware version of the tool above works.

Simon.
Thanks Mestha. As always correct and competent ;-)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial