Skip to content

Instantly share code, notes, and snippets.

@rysstad
Created April 30, 2015 08:30
Show Gist options
  • Save rysstad/57c4dadfecba0f9325c4 to your computer and use it in GitHub Desktop.
Save rysstad/57c4dadfecba0f9325c4 to your computer and use it in GitHub Desktop.
Set-AllADUserPasswordNeverExpires
# Set all AD user-account passwords to never expire.
# Use in test/dev-environments only! :-)
Get-ADUser -Filter * | Set-ADUser -PasswordNeverExpires:$true -Verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment