Skip to content

Instantly share code, notes, and snippets.

@royashbrook
Created February 7, 2018 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save royashbrook/91343a0b6dd462ba07fba79003edacfa to your computer and use it in GitHub Desktop.
Save royashbrook/91343a0b6dd462ba07fba79003edacfa to your computer and use it in GitHub Desktop.
#Reset User Password:
function Set-Pass {
Param ($Identity, $PlainTextPassword)
$a = $Identity
$b = $PlainTextPassword
$c = ConvertTo-SecureString -AsPlainText $b -Force
$d = Set-ADAccountPassword $a -Reset -NewPassword $c
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment