AD Password s

DNRRP
DNRRP used Ask the Experts™
on
Hello
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 ?

DNRRP
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
helpfinderIT Consultant

Commented:
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
With script, you can achieve it.

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

But, you need to get OU details correctly for LDAp search

Author

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

DNRRP
Should you be charging more for IT Services?

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

helpfinderIT Consultant

Commented:
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
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
Top Expert 2013

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 :)
Architect
Distinguished Expert 2018
Commented:
Just run one saved query in active directory users and computers

It will give you all users in entire domain
http://anandthearchitect.com/2008/07/02/list-all-active-users-in-a-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
dsquery user should work fine for you. Try this.

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