I’m writing c# code which will interact with the active directory, and my question is is there a fast way to add multiple users to a directory entry. I am kind of new to active directory. What I have found out so far, is that I can use DirectoryEntrie class’s Add method to add a user. So, using a loop statement I would be able to add multiple users.However, I was wondering… would this not take long, if I had 500 loops? Isn’t there a better, faster method,(let’s say Addrange(Ienumerable)) which only performs a single time, but having a list or array as an parameter?
Thx in advance!
There is no way to create a batch of users at once, from the perspective of Directory Services. You’ll have to use the loop.