![]() Let’s consider another scenario when you need to change the passwords of multiple users at once. Using PowerShell to Reset Multiple AD User PasswordsĪbove we have shown how to reset the password of a single AD user from PowerShell console. This event can help you to check who reset the user password in AD. When resetting the password, the EventID 4724 is registered on the domain controller (DC) security log. Get-ADUser jliebert -Properties * | select name, pass* Using the Get-ADUser cmdlet, you can make sure that the password has been successfully reset and display the last date of the account password change: Set-ADAccountPassword jliebert -NewPassword $NewPasswd -Reset -PassThru | Set-ADuser -ChangePasswordAtLogon $True ![]() ![]() You can combine the password change command and the requirement to change the password (this is the userAccountControl object attribute) in the PowerShell one-liner:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |