best business builder

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\user\desktop\Users.CSV 

ForEach($User in $UserPwds) 

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

 

 

customer relationships

Leave a Reply

Your email address will not be published. Required fields are marked *