Ask the Expert

Help with implementing a password policy for an entire domain

I am trying to implement a password policy for my entire domain. The problem is I have several POP3 users who never login to the domain. Is there a utility that will query the AD for users whose passwords will expire within x days and send an e-mail notification to them?

Requires Free Membership to View

It would probably be possible to do this with a WSH script that runs once a day (courtesy of Scheduled Tasks or the AT command) and uses either the Exchange SMTP system, the native SMTP sender in IIS, or a freeware program like BLAT ( to send the e-mail. Getting the expiry date for a password from AD through WSH isn't difficult -- you can see a code sample for how to get a user's account information, including the date of expiry, here:

This was first published in October 2004

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: