General discussion

Locked

Changing Multiple Passwords Win2003 AD

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

This conversation is currently closed to new comments.

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

All Comments

Collapse -

by lowlands In reply to Changing Multiple Passwor ...

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.

Collapse -

by lowlands In reply to

oops, a typo. it would be "dsquery user" not "dsquery use"

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

Related Discussions

Related Forums