Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: ,

Sponsored Links



Adding Multiple Users to an AD Group at One Time

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 11-08-2009
DW
 
Posts: n/a
Adding Multiple Users to an AD Group at One Time

Is there a way in VBScript or VB.net to do the following:

Given a large number (say 2000) users that already exist in AD, is
there a way to add them at one time to a group?

I do not want to add them one at a time using a FOR EACH loop. I want
to batch them up so I only make one trip to the server for performance
reasons.
Reply With Quote
  #2  
Old 11-08-2009
Jorge Silva
 
Posts: n/a
Re: Adding Multiple Users to an AD Group at One Time

Hi
Adding them using a loop is basically the same as you repeat each command
multiple times for each user, I don't see any performance advantages doing
that.
--
I hope that the information above helps you.
Have a Nice day.

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Jorge Silva
MVP Directory Services
"DW" <damienwalkeriphone@gmail.com> wrote in message
news:f592eeff-23da-4534-9d1a-ac925c6304ad@r18g2000yqd.googlegroups.com...
> Is there a way in VBScript or VB.net to do the following:
>
> Given a large number (say 2000) users that already exist in AD, is
> there a way to add them at one time to a group?
>
> I do not want to add them one at a time using a FOR EACH loop. I want
> to batch them up so I only make one trip to the server for performance
> reasons.


Reply With Quote
  #3  
Old 11-08-2009
Paul Bergson [MVP-DS]
 
Posts: n/a
Re: Adding Multiple Users to an AD Group at One Time

You need to get a user and then add that user to the group and then repeat.
No way around this.

--
Paul Bergson
MVP - Directory Services
MCTS, MCT, MCSE, MCSA, Security+, BS CSci
2008, 2003, 2000 (Early Achiever), NT4
Microsoft's Thrive IT Pro of the Month - June 2009

http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup This
posting is provided "AS IS" with no warranties, and confers no rights.

"DW" <damienwalkeriphone@gmail.com> wrote in message
news:f592eeff-23da-4534-9d1a-ac925c6304ad@r18g2000yqd.googlegroups.com...
> Is there a way in VBScript or VB.net to do the following:
>
> Given a large number (say 2000) users that already exist in AD, is
> there a way to add them at one time to a group?
>
> I do not want to add them one at a time using a FOR EACH loop. I want
> to batch them up so I only make one trip to the server for performance
> reasons.



Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Adding Multiple Users to an AD Group at One Time"
Thread Thread Starter Forum Replies Last Post
LDIFDE: Create new group with multiple members, ignore nonexistant users Bruno Ferguson Active Directory 1 02-12-2011 07:16 PM
Adding Users to Local Security Group from other Domain duke2555 Active Directory 2 30-08-2011 01:36 AM
adding domain users automatically to the local admin group The Shadow Active Directory 3 07-06-2011 11:57 PM
Adding a group to multiple Distribution list Amarnath Active Directory 1 30-05-2009 11:56 PM
Listing, adding, and removing users to a local or domain group jasonrawlins@gmail.com Active Directory 0 02-01-2007 10:06 PM


All times are GMT +5.5. The time now is 09:06 PM.