[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

AD Password s

Posted on 2014-02-26
8
Medium Priority
?
160 Views
Last Modified: 2014-03-04
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
0
Comment
Question by:DNRRP
8 Comments
 
LVL 19

Expert Comment

by:helpfinder
ID: 39891107
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
0
 
LVL 3

Expert Comment

by:Krishna Patil
ID: 39891119
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
0
 

Author Comment

by:DNRRP
ID: 39891133
Helpfinder
Where is the option to select multiple users from ?

DNRRP
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
LVL 19

Expert Comment

by:helpfinder
ID: 39891144
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
0
 
LVL 3

Expert Comment

by:Krishna Patil
ID: 39891149
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'.
0
 
LVL 9

Expert Comment

by:VirastaR
ID: 39891698
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 :)
0
 
LVL 38

Accepted Solution

by:
Mahesh earned 1440 total points
ID: 39892813
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
0
 
LVL 5

Expert Comment

by:Pankaj_401
ID: 39893990
dsquery user should work fine for you. Try this.
0

Featured Post

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here's a look at newsworthy articles and community happenings during the last month.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question