Created
February 7, 2018 16:24
-
-
Save royashbrook/91343a0b6dd462ba07fba79003edacfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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