📜  重置域密码多个;e 用户 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:59.550000             🧑  作者: Mango

代码示例1
$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 
}