General discussion

  • Creator
    Topic
  • #2297243

    How to reset all users password in Win2K

    Locked

    by y2j ·

    Hi

    How do i reset the password of all users in an OU and also enabe them to change it at the next logon. I notice the option reset password is not there when you select more than 1 user. I could do this in NT4 user manager.

    Thanks

All Comments

  • Author
    Replies
    • #2685921

      Reply To: How to reset all users password in Win2K

      by cacal ·

      In reply to How to reset all users password in Win2K

      Hi,

      You can use a WSH/DASi script like

      ************************
      container=”LDAP://OU=myou,DC=domain,DC=com”
      mdp=”password123456″

      Set ou = GetObject(container)

      usr.SetPassword mpd
      usr.AccountDisabled = False
      Usr.Put “pwdLastSet”, CLng(0)

      ou.Filter = Array (“user”)
      For Each user In ou

      user.SetPassword mpd
      user.AccountDisabled = False
      User.Put “pwdLastSet”, CLng(0)
      usr.SetInfo

      Next

      ****************

      i think this one work fine (test on test OU before)

    • #2685905

      Reply To: How to reset all users password in Win2K

      by kumaran ·

      In reply to How to reset all users password in Win2K

Viewing 1 reply thread