Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to pull the users list from AD with only one read permission account by using a script.? also I want to Create a script which allows in AD to create 10 OU's and 50 users in each OU.

Please suggest the suitable scripts.

Thanks Crew.

share|improve this question

The Technet Scripting Center is your friend.

Here for Active Directory searching: clicky, and here for other AD scripts: clicky

share|improve this answer

I'd say using powershell with the Quest ActiveRoles cmdlets are the easiest way to get quickly up and running with script-based AD-related operations. It is well-documented and has a very broad user base = lots of google-able resources.

share|improve this answer

Are you wanting the script to do that exactly (10 OUs and 50 Users in each OU) or do you want to be able to decide how many OUs are created and how many users are created in the OUs when you run the script? Do you have a list of OUs and Users in a file or will you be entering them manually?

share|improve this answer

I second Trondh's recommendation of PowerShell with the Quest ActiveRoles cmdlets add-on. I've had great success in incorporating the ActiveRoles cmdlets with custom user provisioning scripts.

Familiarizing yourself with the ActiveRoles cmdlets helps a great deal in day to day AD administration as well. Well worth the time to learn the basics.

Quite easy to pick up if you're already somewhat familiar with PowerShell as everything is well documented.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.