AD Password s

I want to force 170 users to "Change there password at next login" in active directory.
What is the easiest and quickest way to do this without setting each account one at a time ?

Who is Participating?
MaheshConnect With a Mentor ArchitectCommented:
Just run one saved query in active directory users and computers

It will give you all users in entire domain

Just select all users by selecting ctrl+A and then remove unwanted users by holding down Ctrl key and deselecting one by one

right click and select properties and go to account tab

There you will have to select extreme left checkbox corresponds to "User must change password at next logon" and then inside checkbox will be enabled. U need to select that checkbox as well

That's all

Now each user is forced to change password at next logon
helpfinderIT ConsultantCommented:
You can do it without script. And it will take just a minute (if you do not have a lot of OUs with users).
Just do to AD users and computers, select multiple users and right click the properties. There should be an option (tick box) to force user to change pass on next logon
Krishna PatilCommented:
With script, you can achieve it.

Set objUser = GetObject("LDAP://cn=username,ou=ouname,dc=MyDomain,dc=com")
objUser.pwdLastSet = 0

But, you need to get OU details correctly for LDAp search
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

DNRRPAuthor Commented:
Where is the option to select multiple users from ?

helpfinderIT ConsultantCommented:
just go to appropriate OU and press ctrl+a to select all users (objects) in that OU, or choose by holding ctrl and left clicking on users you want to select or 3th option is to click on a first user in an OU, hold shift and right click on the last user
Krishna PatilCommented:
If uses exists in same OU, then you can just select multiple user by mouse or by keyboard, and check property on right click, and select option for 'changing password on next logon'.
VirastaRUC Tech Consultant Commented:
Hi Check this,

Similar kind of issue resolved in Technet Forum.

How to force all users to change their password at next logon

Hope that helps :)
dsquery user should work fine for you. Try this.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.