Script needed to reset passwords for all users in OU
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._
Re: Script needed to reset passwords for all users in 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.
Re: Script needed to reset passwords for all users in OU
You can bulk select all the users in an OU and perform the 'reset password' command can't you?
Re: Script needed to reset passwords for all users in OU
I tried that yesterday by select all of them then right click but the 'reset password option odes not appear.!
Re: Script needed to reset passwords for all users in OU
tosca, in that script on the computer performance website , what did you try to change in that script to get it to work ?
Re: Script needed to reset passwords for all users in OU
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 :)
Re: Script needed to reset passwords for all users in OU
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.
Re: Script needed to reset passwords for all users in OU
That's what I said SM - without the helpful detail tho' :P
Re: Script needed to reset passwords for all users in OU
Quote:
Originally Posted by SpuffMonkey
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.
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.
Re: Script needed to reset passwords for all users in OU
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...............?
Re: Script needed to reset passwords for all users in OU
net user mickeymouse goofy (username is mickeymouse and password is goofy)
each user on a seperate line.
Re: Script needed to reset passwords for all users in OU
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.
Re: Script needed to reset passwords for all users in OU
can you put that in text then Tosca? :)