Make AD User password Expire using Powershell.
If you want to make a user to change password the next time, use the below cmdlet.
#make user password expire
Get-ADUser -Identity (username) | Set-ADUser -ChangePasswordAtLogon:$true
Get-ADUser -Identity (username) | Set-ADUser -ChangePasswordAtLogon:$true
No comments:
Post a Comment