How to change password for AD users using PowerShell

The following is a comparison between changing a password for user accounts in AD with Windows PowerShell and ADManager Plus:

Windows PowerShell

Steps to change a password for an AD account using PowerShell:

  • Identify the domain in which you want to change the password.
  • Identify the LDAP attributes you need to change the password.
  • Compile the script.
  • Execute it in Windows PowerShell.

Sample PowerShell script:

 Copied
Import-Module ActiveDirectory
Set-ADAccountPassword -Identity DemoUser001 -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "DemoUser001@abc.com" -Force)
Click to copy entire script

ADManager Plus

  • Select Management -> User Management -> Reset Password
  • Select the domain and OU.
  • Choose the desired user(s), enter the new password and select Apply.

Screenshot

Change password for Active Directory users using ADManager Plus

» Start 30-day Free Trial

Following are the limitations to modify AD user(s) password using native tools like Windows PowerShell:

  • We can run this script only from the computers which have Active Directory Domain Services role.
  • With additional filters, the script will get longer and complicated.
  • Troubleshooting the scripts requires extensive AD and scripting expertise

ADManager Plus can help you change users’ passwords in bulk with just a CSV file from a simple and intuitively designed UI.

  • Embark on your script-free AD management, reporting, and automation journey with ADManager Plus.
  •  
  • By clicking 'Start your free trial now', you agree to processing of personal data according to the Privacy Policy.
  • Thanks
  • Your download should begin automatically in 15 seconds. If not, click here to download manually.

Related Powershell How-to Guides:

Email Download Link