+ 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,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    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
    Boston, MA
    Posts
    7,601
    Thank Post
    110
    Thanked 771 Times in 599 Posts
    Rep Power
    183

    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
    10,053
    Thank Post
    3,585
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377

    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
    10,053
    Thank Post
    3,585
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377

    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,268
    Thank Post
    55
    Thanked 285 Times in 191 Posts
    Rep Power
    136

    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,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    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
    10,074
    Thank Post
    1,384
    Thanked 1,889 Times in 1,170 Posts
    Blog Entries
    19
    Rep Power
    614

    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
    10,074
    Thank Post
    1,384
    Thanked 1,889 Times in 1,170 Posts
    Blog Entries
    19
    Rep Power
    614

    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,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    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, 01:04 PM
  2. Replies: 0
    Last Post: 19th November 2007, 11:12 AM
  3. *nix Script needed for backup job
    By ICTNUT in forum *nix
    Replies: 2
    Last Post: 14th November 2007, 10:59 AM
  4. Help needed writing a pkinvoice script
    By Ric_ in forum Scripts
    Replies: 6
    Last Post: 20th April 2007, 01:15 PM
  5. Info needed from BGfL users (Brummies)
    By _Bat_ in forum Wireless Networks
    Replies: 8
    Last Post: 6th January 2007, 10: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
  •