?
Solved

Adding users to domain

Posted on 2004-10-17
2
Medium Priority
?
210 Views
Last Modified: 2010-04-26
Hi
I want to add some number of users to my domain, from command prompt. I know that I can simply use:
net user user_name password /ADD
to perfrom the job, but the problem is, this command will add the users to "Users" folder in the domain, while I want to add the users to a previously created "Organizational Unit".
Is there a way to add users to an Organizational Unit, from command prompt? Or is there a way to move a user from one Organizational Unit to other, from the command prompt?
Thanks in advance
Huji
0
Comment
Question by:huji
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 11

Expert Comment

by:KaliKoder
ID: 12331658
Hello Huji,

Try this article, it would let you add users to a particular OU from command prompt using the command dsadd utility, I am assuming you are using Windows 2003 , if this is not the case please let me know what OS

http://www.computerperformance.co.uk/ezine/ezine29.htm#Example%202%20Creating%20a%20User%20-%20DSadd%20user....



0
 
LVL 11

Accepted Solution

by:
KaliKoder earned 2000 total points
ID: 12331665
If you are running a Windows 2000 server as a DC, you should have a look at the following URL. It gives step by step instruction on how to create a new user in an OU using the LDIF command from a command line:

http://groups.google.ca/groups?hl=en&lr=&threadm=eSkBLlO3BHA.568%40tkmsftngp07&rnum=2&prev=/groups%3Fq%3Dcreate%2Ba%2Bnew%2Buser%2Bin%2Ban%2BOU%2Bfrom%2Bcommand%2Bprompt%26hl%3Den%26lr%3D%26selm%3DeSkBLlO3BHA.568%2540tkmsftngp07%26rnum%3D2

Hope that helps!

Thanks and Good Luck!
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
This is about my first experience with programming Arduino.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question