tosca925 Posted September 10, 2005 Posted September 10, 2005 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/ezine/ezine83.htm#Example_-_To_Reset_All_Passwords_in_a_Named_OU._
MkII Posted September 10, 2005 Posted September 10, 2005 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.
Ric_ Posted September 10, 2005 Posted September 10, 2005 You can bulk select all the users in an OU and perform the 'reset password' command can't you?
tosca925 Posted September 10, 2005 Author Posted September 10, 2005 I tried that yesterday by select all of them then right click but the 'reset password option odes not appear.!
mac_shinobi Posted September 10, 2005 Posted September 10, 2005 tosca, in that script on the computer performance website , what did you try to change in that script to get it to work ?
mac_shinobi Posted September 10, 2005 Posted September 10, 2005 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
SpuffMonkey Posted September 10, 2005 Posted September 10, 2005 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 thats how I set all of my little dear's passwords.
MkII Posted September 10, 2005 Posted September 10, 2005 That's what I said SM - without the helpful detail tho'
GrumbleDook Posted September 11, 2005 Posted September 11, 2005 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 thats how I set all of my little dear's passwords. 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.
tosca925 Posted September 11, 2005 Author Posted September 11, 2005 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...............?
GrumbleDook Posted September 11, 2005 Posted September 11, 2005 net user mickeymouse goofy (username is mickeymouse and password is goofy) each user on a seperate line.
tosca925 Posted September 12, 2005 Author Posted September 12, 2005 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now