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) 

 

 


Got a project that needs expert IT support?

From Linux and Microsoft Server to VMware, networking, and more, our team at CR Tech is here to help.

Get personalized support today and ensure your systems are running at peak performance or make sure that your project turns out to be a successful one!

CONTACT US NOW
one click social media designs