Discussion Locked

Changing Multiple Passwords Win2003 AD

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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

2 replies

by lowlands

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.

This discussion is closed to new replies.