Last week we had a need for a collection of AD accounts for testing purposes. Which is when I came up with this straight forward VBScript. This script uses a simple integer incrementation to create a collection of active directory accounts with unique usernames, sets their passwords, and then adds them to a security group.
In the example below I am creating 80 accounts, if you require more or less – simply change the number 80 on line 12