Skip to content

Using CMD to Create AD User Accounts in Bulk

July 9, 2013

When you have a lot of users that you need to insert into Active Directory Users and Computers, this task can take whole day if you enter every single account name in your ADUC.

This below method it just a very simple method where as you can use notepad to import bunch of User by just using CMD..

Lets get started…

1 – For this demo, I will use my existing AD Server with CPX.LOCAL domain and previously created empty OU call MelakaBranch.

— My MelakaBranch OU is now empty without any User in it, so I would like to import 27 users in just 1 shot..


2 – For this step, you need a Notepad with Your Domain user information. This can be done in MS Excel. See example here.


You can download my sample of Import Bulk User script from here and modify yourself :


3 – After you have modify the script, save it (make sure you save it in .CSV format) & copy the script into C:\Users\Administrator folder

— verify the file by run DIR command


4 – in CMD, run this command and press enter : csvde -i -f Users.csv -k

— if everything ok, you will see a command stated ** entries modified successfully.


5 – Now open your Active Directory Users & Computers, and refresh the interface. You will see your users that you type in the bulk user script now listed in your specific OU.


6 – Next, highlight all your newly created users, right click and choose Enable Account.

** When you Enable Account, then only your selected users can log into their system.




That’s all for today, wait for my next post…………..

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: