Geeks With Blogs



Lance Robinson

Create Your Badge

Lance Robinson is a software engineer in Durham, Chapel Hill, Raleigh, and surrounding areas. More about Lance.


Lance's TextBox » About Me » My Resume »Twitter

Here's how you can change your active directory (or other ldap server) password with the set-ldap cmdlet in /n software NetCmdlets. Also, recently I also showed how to this using the IP*Works! SSL LdapS dev component.

PS C:\> set-ldap -server myserver -binddn Domain\Administrator -password admin -dn "cn=BillyBob,ou=Employees,dc=DOMAIN" -newpassword mynewpassword -ssl implicit

Update: the -password parameter is now a secure string.  There is also a -credential parameter.  So the cmd to change the password is now either:

  1. PS C:\> set-ldap -server testboy -cred $mycred -dn "CN=Lance Robinson,CN=Users,DC=JUNGLE" -newpassword  lancer -ssl implicit

  2. PS C:\tools> set-ldap -server testboy -binddn JUNGLE\Administrator -password $password -dn "CN=Lance Robinson,CN=Users,DC=JUNGLE" -newpassword lancer -ssl implicit

    where $password is a secure-string, ie: $password = read-host -assecurestring

Technorati : , , , , , , ,

Posted on Wednesday, December 27, 2006 1:33 PM Programming , Software , PowerShell | Back to top

Comments on this post: Change Active Directory password with NetCmdlets

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Lance Robinson | Powered by: | Join free