Solved

Need to script a password reset for multiple users in the same OU in Active Directory

Posted on 2016-09-21
3
74 Views
Last Modified: 2016-09-21
I have a test AD OU and I need to reset a select number of users to the same password.  Was hoping to get some help with some type of PowerShell command or tool to facilitate this.  Any help would be greatly appreciated.
0
Comment
Question by:SDISupport
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 250 total points
ID: 41809684
I need to reset a select number of users to the same password
If you have a list of user names in a text file..
Import-Module Activedirectory
GC C:\input.txt | %{Set-ADAccountPassword $_ -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "p@ssw0rd" -Force)}

Open in new window

Sample input file
UserA
UserB
UserC

Open in new window

0
 
LVL 55

Assisted Solution

by:McKnife
McKnife earned 250 total points
ID: 41809777
The shortest way, as usual, is batch: http://www.petenetlive.com/KB/Article/0000497
Powershell script right from the MS script gallery: https://gallery.technet.microsoft.com/scriptcenter/Reset-password-for-all-412fbc72
0
 
LVL 2

Expert Comment

by:Nilesh Kamble
ID: 41810121
article
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

705 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