一般情况下,在现场维护客户环境时,考虑到security policy,每个人都会被创建单独的admin账号用于访问环境做troubleshooting等操作,同时对于这些account也需要定期修改密码。那么在没有办法直接在Domain下修改account密码的情况下,如何进行密码修改呢?
其实可以通过执行powershell实现,具体如下:
1. 使用要修改密码的account登录任意一个系统环境,打开Windows PowerShell
2. 执行下面command
Set-ADAccountPassword -Identity AccountID -OldPassword (ConvertTo-SecureString -AsPlainText "oldpassword" -Force) -NewPassword (ConvertTo-SecureString -AsPlainText "newpassword" -Force)
3. 修改成功之后可以使用新密码了,同时下一次修改周期也会从修改当天开始计算
感谢阅读。