📅  最后修改于: 2022-03-11 14:56:59.550000             🧑  作者: Mango
$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
}