Quickly Bulk-Create lots of AD Users
24/03/13 04:32 Filed in: Windows
Quick blog showing a small script that can bulk create a lot of Active Directory users for you.
I’ve received this query multiple times over the last couple of months - need to provision lots of AD Users quickly for testing. Quick & dirty VB Script below that will create 1000s of users in an AD OU if you wish - though I’d share.
Copy and paste the below in to Notepad, save as VBS, and then modify accordingly. Job done.
DIM oUser, OU
DIM NoUsers, UserName, count
WHILE NOT Count=NoUsers
oUser.Put "Description","Test User"
Bits in BOLD you need to edit:
Change the OU path here to match your system - I.e. where you want the users creating.
Set this to the number of users you want to create - in this case 4,500.
Here, it’s important you set a password that will pass the security standards for the domain, otherwise the user won’t be created.
Anyways, quick and easy, just how I like it. The above will create however many accounts you need with an incremental name of TestX, where X is the increment.