1) Download and extract PasswordResetTool.zip (here is VirusTotal scan) to a folder of your choice.
2) Run Configurator.exe (Configurator Editor).
a) On the Settings tab, enter the FQDN and NetBIOS for the domain on for which Password Reset Tool needs to reset passwords for
b) Specify length that passwords should be reset to for user and administrator accounts
c) Save the configuration file
Once configuration has been completed, the Password Reset Tool can be executed
Once the Reset Password button is pressed, the specified user account password is reset to a pronounceable, random password
After the process, the connection password and user field are cleared.
DirectoryEntry directionEntry = new DirectoryEntry(domainPath, domainName + "\\" + connectionUserName, @connectionPassword);
if (directionEntry != null)
{
DirectorySearcher search = new DirectorySearcher(directionEntry);
search.Filter = "(SAMAccountName=" + userToReset + ")";
SearchResult result = search.FindOne();
if (result != null)
{
DirectoryEntry userEntry = result.GetDirectoryEntry();
if (userEntry != null)
{
userEntry.Invoke("SetPassword", new object[] { password });
userEntry.Properties["pwdLastSet"].Value = 0;
userEntry.Properties["LockOutTime"].Value = 0x0000;
userEntry.CommitChanges();
}
}
}
return password;
Using initial secure and unique passwords during reset contributes to a far more secure environment.
Please do not forget to press the "Thumb's Up" button if this article was helpful and valuable for EE members.
It also provides me with positive feedback. Thank you!
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (4)
Commented:
Will definitely give try and let you know.
Is this similar like other self service password reset solutions like these:
https://www.manageengine.com/products/self-service-password/self-service-password-reset.html
https://www.lepide.com/active-directory-self-service/
Mostly they are paid solution and yours is free of cost.
Is there any other key point just for knowledge to keep in mind.
Author
Commented:This is more geared toward helpdesk, resetting other user's passwords
Regards
Shaun
Author
Commented:Author
Commented:https://www.experts-exchange.com/articles/31477/Free-Open-Source-Self-Service-Password-Reset-tool-for-Active-Directory.html