Solved

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

Posted on 2016-09-21
3
38 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
3 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 250 total points
Comment Utility
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 53

Assisted Solution

by:McKnife
McKnife earned 250 total points
Comment Utility
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
Comment Utility
article
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now