How to reset pswds for AD user acct via PowerShell

Open PowerShell in admin mode and enter the following:

  • Make sure to have a .csv file with a column name of “Username” and “Password”

 

 

Import-Module ActiveDirectory 

$UserPwds = Import-CSV C:\users\msgeek\desktop\Users.CSV 

ForEach($User in $UserPwds) 

      Set-adaccountpassword $User.UserName -reset -newpassword (Convertto-Securestring -asplaintext $($User.Password) -force)