General discussion

  • Creator
    Topic
  • #2259087

    Changing Multiple Passwords Win2003 AD

    Locked

    by mgonzales ·

    I have a client that needs to reset the password to something common for a couple of hundred accounts. I seen several scripts that would do this that I tried that didn’t work. The domain name is hcslab.domain and the server name is hcs2. If anyone has a script that could work on that would be greatly appreciated.

    Thanks

All Comments

  • Author
    Replies
    • #3205740

      Reply To: Changing Multiple Passwords Win2003 AD

      by lowlands ·

      In reply to Changing Multiple Passwords Win2003 AD

      It kind of depends on what your criteria will be.
      If you want to change the password for all users in an OU, you could use the following;
      “dsquery use “OU=ou1,dc=hcslab,dc=domain” | dsmod user -pwd ChangeNow! -mustchpwd yes”

      That would change the password for all users in OU1 and set it so they’ll have to change it on first login.

Viewing 0 reply threads