+ Post New Thread
Results 1 to 13 of 13
Scripts Thread, Script needed to reset passwords for all users in OU in Coding and Web Development; Has anyone got a script that will enable me to reset all the passwords for all the users in OU. ...
  1. #1
    tosca925's Avatar
    Join Date
    Aug 2005
    Location
    Midlands
    Posts
    1,547
    Thank Post
    4
    Thanked 4 Times in 4 Posts
    Rep Power
    22

    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._

  2. #2
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,972
    Thank Post
    257
    Thanked 49 Times in 45 Posts
    Blog Entries
    2
    Rep Power
    46

    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.

  3. #3

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,592
    Thank Post
    109
    Thanked 770 Times in 598 Posts
    Rep Power
    182

    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?

  4. #4
    tosca925's Avatar
    Join Date
    Aug 2005
    Location
    Midlands
    Posts
    1,547
    Thank Post
    4
    Thanked 4 Times in 4 Posts
    Rep Power
    22

    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.!

  5. #5

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,855
    Thank Post
    3,374
    Thanked 1,065 Times in 984 Posts
    Rep Power
    367

    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 ?

  6. #6

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,855
    Thank Post
    3,374
    Thanked 1,065 Times in 984 Posts
    Rep Power
    367

    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

  7. #7

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,249
    Thank Post
    55
    Thanked 280 Times in 187 Posts
    Rep Power
    134

    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.

  8. #8
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,972
    Thank Post
    257
    Thanked 49 Times in 45 Posts
    Blog Entries
    2
    Rep Power
    46

    Re: Script needed to reset passwords for all users in OU

    That's what I said SM - without the helpful detail tho' :P

  9. #9

    GrumbleDook's Avatar
    Join Date
    Jul 2005
    Location
    Gosport, Hampshire
    Posts
    9,967
    Thank Post
    1,352
    Thanked 1,814 Times in 1,126 Posts
    Blog Entries
    19
    Rep Power
    600

    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.

  10. #10
    tosca925's Avatar
    Join Date
    Aug 2005
    Location
    Midlands
    Posts
    1,547
    Thank Post
    4
    Thanked 4 Times in 4 Posts
    Rep Power
    22

    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...............?

  11. #11

    GrumbleDook's Avatar
    Join Date
    Jul 2005
    Location
    Gosport, Hampshire
    Posts
    9,967
    Thank Post
    1,352
    Thanked 1,814 Times in 1,126 Posts
    Blog Entries
    19
    Rep Power
    600

    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.

  12. #12
    tosca925's Avatar
    Join Date
    Aug 2005
    Location
    Midlands
    Posts
    1,547
    Thank Post
    4
    Thanked 4 Times in 4 Posts
    Rep Power
    22

    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.

  13. #13
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,972
    Thank Post
    257
    Thanked 49 Times in 45 Posts
    Blog Entries
    2
    Rep Power
    46

    Re: Script needed to reset passwords for all users in OU

    can you put that in text then Tosca?

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 1
    Last Post: 3rd January 2008, 12:04 PM
  2. Replies: 0
    Last Post: 19th November 2007, 10:12 AM
  3. *nix Script needed for backup job
    By ICTNUT in forum *nix
    Replies: 2
    Last Post: 14th November 2007, 09:59 AM
  4. Help needed writing a pkinvoice script
    By Ric_ in forum Scripts
    Replies: 6
    Last Post: 20th April 2007, 12:15 PM
  5. Info needed from BGfL users (Brummies)
    By _Bat_ in forum Wireless Networks
    Replies: 8
    Last Post: 6th January 2007, 09:57 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •