有没有办法让许多AD用户在下次login时更改密码? 而不是每次为每个用户设置一个?

实际上,我希望组织中的所有AD用户在下次login时更改密码。我大约有160个用户。 我也想不包括一些select成员。 有没有一个快速的方法来做到这一点,而不是通过广告和每个用户一次检查框?

select你想要更改密码的所有用户。 Shift或Control单击以select多个。 然后右键单击 – >属性 – >帐户 – >用户必须在下次login时更改密码。

这是一个非常好的非常有用的工具,用于做你想做的事情的链接。

http://www.wisesoft.co.uk/software/bulkadusers/default.aspx

你可以通过OU,通过基于用户名的CSV导入一个唯一的标识符,很多选项来做到这一点。

另一种select是使用PowerShell和Active Directory的Quest PowerShell命令 。

这会:

  1. 将所有用户导出到文本文件
  2. 打开记事本,让您有机会删除任何不应提示input密码重置的用户
  3. 处理修改后的文件,标记每个用户在下次login时需要更改密码

PowerShell脚本的内容:

# Variable for path, change to convenient location $exportPath = "c:\Users.txt" # Get all users, export only their user name to a text file Get-QADUser | Select -ExpandProperty SamAccountName | Out-File $exportPath # Open notepad on this file notepad $exportPath # Write message to console Write-Host "Using notepad, remove users not required to change password" # Wait for user to press enter to continue Read-Host "Press enter when ready" # Read the text file back in, load an AD user for each line, and change their setting Get-Content $exportPath | Get-QADUser | Set-QADUser -UserMustChangePassword $true