Find all users who have not changed there password for more than 90 days.And then check the change password on next logon

Hi,

Find all users who have not changed there password for more than 90 days.And then check the change password on next logon.
First list the users to a file who have not changed the password in ADS.Later another script than sets them to change the password on next logon.

Regards
Sharath
LVL 11
bsharathAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
tcicatelliConnect With a Mentor Commented:
Why wouldn't you just set a policy to force all users to change their password every 90 days under account policy settings?  It's a built-in feature.  I wouldn't go to the trouble of trying to find people now.  In 90 days the point would be moot.  

If you wanted to, you could just force everyone to change their password at next login and then the policy will take care of the rest.
0
 
bsharathAuthor Commented:
Firstly i need to see if anyone has changed there password or not.As we have already repeatly communicated to the users to change the passwords.
First find then set the password change policy.Is there a script that i can do this...
0
 
LauraEHunterMVPConnect With a Mentor Commented:
> "In 90 days the point would be moot."

If users haven't changed their passwords, it'll be moot in a lot less than 90 days.  If you set a maximum password age of 90 days on Monday and a user's password hasn't been changed in 91 days, they will be prompted to change at their next logon.
0
 
tcicatelliConnect With a Mentor Commented:
Here's the location of a script that will tell you the last time a user changed their password.

http://www.rlmueller.net/PwdLastChanged.htm

As LauraEHunterMVP mentioned, just set a maximum password age of 90 days, and you can avoid using the script.
0
 
bsharathAuthor Commented:
Thanks....
0
All Courses

From novice to tech pro — start learning today.