Active Directory – How to Force Domain Users to Change Password Now

active-directorypassword

How can I force all domain users to change their password now? I want to do so before users next logon.

Thanks

Best Answer

Use a combination of dsquery and dsmod

eg

dsquery user "OU=Sales,OU=New York,dc=internal,dc=AcmeCorp,dc=com" | dsmod user -pwd ChangeThisNow! -mustchpwd yes -u Admin -p APassword

This would change password of all users in Sales in New York to "ChangeThisNow!" and force them to change it on login.

Here's a reference on dsmod