looking for a script check in the user must change pass word

By dojharris ·
Hi,,, using server 2003 and i have to update users account. Found a script to reset all the pass words. Now i am looking for a scrit that will put a check in the user must change pass word on next log in. Ill post the scrit of change pass word below so you know what i am doing ,,, Thanks for your time >> Doj <<

create a text file containing the users and passwords like so:
user1, genericpassword
user2, genericpassword
save it as user.txt
GOTO run type cmd
and type
for /F "delims=, tokens=1,2" %A in (users.txt) do net user %A %B /domain

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -


by neilb@uk In reply to looking for a script chec ...

It comes with 2003. You will have to change the data file to the Distinguished Name of each user.

The syntax is:

dsmod user "CN=Me,OU=London,DC=Domain,DC=Local" -pwd password -mustchpwd yes

So it will work fine from the command line.


Related Discussions

Related Forums