Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

4 Answers 4

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. http://www.quest.com/powershell/activeroles-server.aspx

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

 
discard

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