Create bulk users in Active Directory using .CSV format and PowerShell
Bulk user creation in Active Directory can be completed using .CSV import and the steps are follows.
Create a .CSV formatted sheet with details, an example given below. This sheet is filled with test user account details to create in Active Directory.
Name = Account Name, givenName =First Name, SamAccountName = login account, Description, Department, Path = OU in which we need to create accounts, UserPassword = password
Run PowerShell as Administrator and execute the command
Import-CSV <path to the .csv file> | New-AdUser
The account password need to meet the complexity requirements, otherwise account cannot be enabled until reset with a new password.
Latest posts by Melbin Mathew (see all)
- VMware virtual IDE to virtual SCSI hard disk conversion steps – Windows XP - August 6, 2015
- Stop Error “CRITICAL_STRUCTURE_CORRUPTION - August 5, 2015
- Error installing Windows server role and feature required for the Exchange 2010 - December 3, 2013