Answers for "reset domain password multipl;e users"

0

reset domain password multipl;e users

$newPassword = (Read-Host -Prompt "Provide New Password" -AsSecureString) 
$users=Get-Content D:\List.txt 
foreach ($i in $users) 
{ 
Set-ADAccountPassword -Identity $i -NewPassword $newPassword -Reset 
}
Posted by: Guest on June-12-2020

Browse Popular Code Answers by Language