Powershell to Reset password of test users who are member of one group

Powershell to Reset password of test users who are member of one group

You can reset password of bulk users who are member of group1 by using below command:

$upasswd = ConvertTo-SecureString “Abcd111*” -AsPlainText -Force

Get-DistributionGroupMember group1 |foreach {write-host $_.PrimarySmtpAddress ; Set-ADAccountPassword -NewPassword $upasswd -Identity $_.Alias}

Note – please change input values (marked in yellow) as per your requirements. 
(Visited 202 times, 1 visits today)

Add a Comment

Facebook