Skip to content

Instantly share code, notes, and snippets.

@justengland
Created November 9, 2018 19:01
Show Gist options
  • Save justengland/d5fc7e7270d157c5a59d5e59d7592ce6 to your computer and use it in GitHub Desktop.
Save justengland/d5fc7e7270d157c5a59d5e59d7592ce6 to your computer and use it in GitHub Desktop.
Powershell Change AD Password
$domain = 'someADDomain.local'
$userName = 'somename'
$newPassword = "P@ssword1" | ConvertTo-SecureString -AsPlainText -Force
Set-ADAccountPassword -Server $domain -Identity $userName -NewPassword $newPassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment