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