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