03 August 2012

Password Never Expires

If you need to enable or disable the "PasswordNeverExpires" for active directory users you can use the command:

Set-ADUser -Identity SamAccountName -PasswordNeverExpires $false


2 comments: