Forum Search:
Forum.Brain-Cluster.com: Brain Cluster Technical Forum
Ultimate forum for Technical Discussions

Home » Microsoft » Windows Server » Active Directory » Adding Multiple Users to an AD Group at One Time
Adding Multiple Users to an AD Group at One Time [message #159864] Mon, 10 August 2009 21:32 Go to next message
DW  is currently offline DW  United States
Messages: 3
Registered: August 2009
Junior Member
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.
Re: Adding Multiple Users to an AD Group at One Time [message #159870 is a reply to message #159864] Tue, 11 August 2009 05:32 Go to previous messageGo to next message
Jorge Silva  is currently offline Jorge Silva
Messages: 398
Registered: July 2009
Senior Member
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.
Re: Adding Multiple Users to an AD Group at One Time [message #159878 is a reply to message #159864] Tue, 11 August 2009 06:27 Go to previous message
pbbergs  is currently offline pbbergs  United States
Messages: 1024
Registered: July 2009
Senior Member
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.
Previous Topic:dfs root does not exist
Next Topic:FSMO down
Goto Forum:
  


Current Time: Thu Jan 18 20:43:55 MST 2018

Total time taken to generate the page: 0.03469 seconds
.:: Contact :: Home ::Sitemap::.

Powered by: FUDforum 3.0.0RC2.
Copyright ©2001-2009 FUDforum Bulletin Board Software