Created
September 9, 2018 10:21
-
-
Save shkpk/8563220e7ba743d44b8ef752a17ab16a 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
# Bind to user object in AD. | |
$User = [ADSI]"LDAP://cn=Jim Smith,ou=West,dc=MyDomain,dc=com" | |
# Expire password immediately. | |
$User.pwdLastSet = 0 | |
# Save change in AD. | |
$User.SetInfo() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment