General discussion

Locked

How to reset all users password in Win2K

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

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by cacal In reply to How to reset all users pa ...

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)

Back to Windows Forum
2 total posts (Page 1 of 1)  

Related Forums