Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add user to multiple groups automatically

Status
Not open for further replies.

zodiaczz

Technical User
Feb 19, 2005
113
CA
Hello all,

I have a question is there a way to have an user automatically be added to certain groups of your choice.

For example if I had an OU called Accounting, I create a new user named Fred put him in this OU and automatically through group policy he becomes a member of certain groups of my choice.

Is there a way you can do that through group policy...
or if not can we suggest some ideas on how to add an user to a number of groups in an instance.

Thanks

 
No Group Policy wouldn't be the way to do it. I'm thinking more along the lines of DSADD. I believe you can create a batch file from Notepad, Input all the correct parameters, and when the batch file is executed the user will be created, then add to the neccessary groups.

I'll double check and let you know.
 
Yeah, ok. DSADD command. It would probably be better to do this in notepad and giving it a .bat extension. then launching the batch file. If the parameters are correct it should create the user and drop that user into the groups you specified.


dsadd /? should give you all the proper switches at the command prompt.
 
Thanks I didnt think Group policy would do it but I was kind of hoping there might be one hiding in there.

Thanks

DSADD I forgout about that, might work out just as well
 
If you already have one user that belongs to those same groups, just copy that user. or just create one user and add the appropriate group membership, then copy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top