Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How can we add bulk users in active dir ?

user-image
Question added by Mahaboob basha Syed , Network Engineer , Pan Kingdom Holding Company
Date Posted: 2015/02/11
Muhammad Anzar
by Muhammad Anzar , DevOps/DevSecOps Architect , Confidential

This step is important when decide to build a brand new Green Field Windows2008 Active Directory service and want to start utilizing the new Windows2008 R2 Active Directory by importing all organization users’ names and passwords into the Active Directory:

1) Build CSV file that include Organization Users with specific attributes to be imported in the new Windows2008 R2 Active Directory,

Sample of CSV can be as the following:

Recommendation

For simplicity’s sake we’ll keep it to a few basic properties like Name and Description, of course Organization IT team can and normally would have significantly more. To make it easier IT team can add a few extra columns like theSamAccountName and the Path (OU) where Organization would like the account to be created, and for account password IT team can configure random or fixed password for all users and force it for all users and distribute the new passwords for each user individually while configure all users to be forced to change password after first login.

clip_image002

2) Use cmdlet Import-CSV which read from a standard CSV file and create a set of objects based on data inside the CSV file, then send the results of this cmdlet using PowerShell pipeline to New-ADUser cmdlet from ActiveDirectory module to create the specified users in the Active Directory, as a sample cmdlet: “Import-CSV C:\\Users.csv | New-ADUser” this command to be run from Active Directory PowerShell Module.

3) Verify that the users in CSV are imported in the Active Directory.

4) Manually join all workstations to the new Windows2008 R2 Active Directory and give the required permissions for each user on his workstation

5) Verify that each user can login to his workstation with his new Active Directory user account.

Shah ALAM
by Shah ALAM , Regional IT Infrastructure Officer @ BNP Paribas Bank , BNP Paribas Bank

By Perform batch operations using the LDIFDE utility. Export users from the Marketing organizational unit (OU) in the Reskit domain into a file format compatible with the LDIF standard format. Perform a batch modification of all the users in the Marketing OU. Use LDIF to create a new user and delete a user.

By Perform batch operations using ADSI and VBScript. Export users from the Marketing OU in the Reskit domain into a text file, using a script written with ADSI and VBScript. Use VBScript to perform a batch modification of all the users in the Marketing OU. Use VBScript to create a new user and delete a user

Gustavo Sergio Tesolin
by Gustavo Sergio Tesolin , IT Consultant , Simply-IT

You can bulk-import users stored in a comma separated file (CSV) with a Powershell cmlet

 

a) http://blog.thesysadmins.co.uk/bulk-add-users-to-an-ad-security-group-from-a-csv.html

b) http://blogs.technet.com/b/bettertogether/archive/2011/01/09/import-bulk-users-to-active-directory.aspx

 

Hope it helps.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.