Win2008/2012r2下批量更改域用户密码
2021-07-12 06:08
                         标签:hbase   direct   plain   windows   new   spl   需要   cto   rest    1、打开Windows PowerShell加载AD模块: 3、更改指定“test”OU中所有域用户的密码: Win2008/2012r2下批量更改域用户密码 标签:hbase   direct   plain   windows   new   spl   需要   cto   rest    原文地址:http://blog.51cto.com/3032439/2171970Import-Module ActiveDirectory
2、更改所有域用户的密码:Get-ADUser -filter * -SearchBase ‘DC=xxx,DC=com‘ | Set-ADAccountPassword -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "abc123AA" -Force)Get-ADUser -filter * -SearchBase ‘OU=test,DC=xxx,DC=com‘ | Set-ADAccountPassword -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "123!@#" -Force)
4、设置域用户下次登陆时不需要更改密码:Get-ADUser -filter * -SearchBase ‘DC=xxx,DC=com‘ | Set-ADUser -ChangePasswordAtLogon $false
文章标题:Win2008/2012r2下批量更改域用户密码
文章链接:http://soscw.com/index.php/essay/104041.html