• #activedirectory, #windows, #windowsserver,
  • Its always tough to change password for multiple users in Windows Active Directory.
  • Lets learn ….how to change password of multiple users at a time with powershell
    • Step-1
    • Generate one .csv file which list of users of username of all the users of which you want to change password.
    • Example : of .csv – click here to download
    • open powershell in windows and type following command
    • $password = ConvertTo-SecureString “pass@24” -AsPlainText -Force Import-Csv “C:\Users\administrator\userlist.csv” | ForEach-Object { Set-ADAccountPassword -Identity $_.Username -NewPassword $password –Reset }
    • pass@24 is a new password to set of the users we have listed in userlist.csv file
    • Means in script you have to change these two parameters, which are in bold.
    • And your passwords will be changed just in a second
  • Enjoy
  • Happy Learning!