Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
How can we add bulk users in active dir ?
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.
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.
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
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.