Showing posts with label password expire Powershell.. Show all posts
Showing posts with label password expire Powershell.. Show all posts

Tuesday, 17 February 2015

Make AD User password Expire using Powershell.

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