+ Post New Thread
Results 1 to 5 of 5
How do you do....it? Thread, Set all Users in an OU to receive a dedicated password. in Technical; I have an OU with 250 users in it. I need to changed their passwords as they have worked out ...
  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

    Set all Users in an OU to receive a dedicated password.

    I have an OU with 250 users in it. I need to changed their passwords as they have worked out the format we used to do them before. I have a script that will give them a password to logon and then they get prompted to input another password that only they know.

    What i want to do is give them a password from a file, ie have a script that looks for their user name in OU against a csv file and then gives them a password associated with their name fromthe file.

    Not sure if this makes sense but i am sure someone will get the jist of it.

  2. #2

    Join Date
    Feb 2006
    Posts
    1,187
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Set all Users in an OU to receive a dedicated password.

    If this is a one off then the quickest to do would be to do an export list of the OU from ADUC to a CSV and then use FOR /F NET USER to set the password.

  3. #3
    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: Set all Users in an OU to receive a dedicated password.

    If this is a one off then the quickest to do would be to do an export list of the OU from ADUC to a CSV and then use FOR /F NET USER to set the password.

    Sorry to be a bit dumb but could you give me an example of this please?

  4. #4

    Join Date
    Feb 2006
    Posts
    1,187
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Set all Users in an OU to receive a dedicated password.

    ADUC has the option to export a list of the contents of an OU to a text file. You'll need to use View|Add/Remove columns to add the username column to the display.

    The format of the file we such that the first line will contain the column/field heading. Load the CSV into Excel (other spreadsheet programs are availible) and produce an extra column for the passwords.

    Now suppose that 4th field was the username and the 5th was the password then you can type the following at the command line.

    Code:
    FOR /F "skip=1 tokens=4,5 delims=," %a IN (userlist.csv)  DO NET USER %a %b
    where userlist.csv is the file you exported from ADUC and added the passwords to. %a is the username and %b the dedicated password.

  5. #5
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    41

    Re: Set all Users in an OU to receive a dedicated password.

    This was is certainly alot less complicated then if you did it in vbs.

SHARE:
+ Post New Thread

Similar Threads

  1. FAO: ELGG users and Moodle Users
    By thegrassisgreener in forum Virtual Learning Platforms
    Replies: 18
    Last Post: 3rd July 2009, 07:12 PM
  2. Changing a users password without remembering it!
    By acrobson in forum How do you do....it?
    Replies: 10
    Last Post: 23rd November 2007, 09:15 AM
  3. Can Receive But Cannot Send E-Mail
    By DaveP in forum Wireless Networks
    Replies: 7
    Last Post: 14th November 2007, 08:26 AM
  4. Exchange Error message stoppind Send/Receive
    By mrforgetful in forum Windows
    Replies: 9
    Last Post: 25th May 2006, 08:50 AM

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
  •