Lab Environment: Set All Users With Non-Expiring Passwords

Posted on Posted in 2008, 2008 R2, windows server

Using Active Directory Module for Windows Powershell (part of Windows 2008 R2 Active Directory and downloadable for earlier versions of AD) use the following cmdlet to set all your user to have non-expiring passwords. Great for lab environments:

Get-ADUser | Set-ADAccountControl –PasswordNeverExpires $True

Leave a Reply

Your email address will not be published. Required fields are marked *