Has anyone got a script that will enable me to reset all the passwords for all the users in OU. WE have 180 night school accounts that i need to reset for this years intake. I found a script (below)but cannot seem to get it to do the job.
http://www.computerperformance.co.uk...n_a_Named_OU._
As my usernames take the form blue1, blue2 etc, I achieve this by creating a batch file in excel, exporting usernames and setting the passwords as the kids surname.

You can bulk select all the users in an OU and perform the 'reset password' command can't you?
I tried that yesterday by select all of them then right click but the 'reset password option odes not appear.!
tosca, in that script on the computer performance website , what did you try to change in that script to get it to work ?
If you pm me with the full altered script with all your relevant info in it ie the domain name etc etc then I can take a look at it for you![]()
Can't you export the user logons from AD - pop into excel and add net user at the front and a password at the end - then save it as a txt file and change the .txt to a bat and run it.
eg
net user <logon> <password>
thats how I set all of my little dear's passwords.
That's what I said SM - without the helpful detail tho' :P

If you are running it on a box other than a DC (ie your own workstation) you need to have administrative access and also stick /domain on the end too.Originally Posted by SpuffMonkey
Sorry to sound a bit thick but could someone give me example of a txt file that would look lik eif i run it on a DC...............?

net user mickeymouse goofy (username is mickeymouse and password is goofy)
each user on a seperate line.
I figured out why it did not work. The script information said it did not need the LDAP information jus the OU. But i had a OU inside a OU. It turns out that it needs all the OU information of LDAP but not the DC info.
All works well now.
Thanks to everyone who helped me.
can you put that in text then Tosca?![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)