Posted in
Hosting & IIS7,
Windows Powershell,
Windows Server |
No Comment | 8,560 views | 02/03/2010 12:23
You see how easy to change ad user password with Powershell.
1
2
3
| $ADUser = [ADSI] "LDAP://CN=$Username,$CustomerOU,$FQDN"
$ADUser.SetPassword($Password)
$ADUser.SetInfo() |
$ADUser = [ADSI] "LDAP://CN=$Username,$CustomerOU,$FQDN"
$ADUser.SetPassword($Password)
$ADUser.SetInfo()
Again, be careful to LDAP name. Have fun!