学习自: 徐鹏老师的 AD Powershell 系列视频课程 批量更改AD用户的密码 Get-ADUser -SearchBase "ou=Lab,dc=satid,dc=com" -Filter * | foreach { Set-ADAccountPassword -Identity $_.name -NewPassword (ConvertTo-SecureString abc@123 -AsPlainText -Force)} 转载于:https://blog.51cto.com/zhaodongwei/1948851