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

SDISupport
SDISupport used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Infrastructure Architect
Commented:
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

Distinguished Expert 2018
Commented:
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
Nilesh KambleSr.System Engineer

Commented:
article

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