Recently during a Microsoft CRM deployment I was supposed to create 2500 users in Microsoft CRM and the type of deployment was On-Premise. So prior to creating the users in Microsoft CRM the users must exist in the Active Directory.
Manual creation of users in the active directory is a mind-numbing task. There are so many VB Scripts available in the internet that will promise you the creation of users in Active directoy automatically; but none of them were helpful in my case. So the following command can be used to create user:
do net user <
but this will create only one user in the Active Directory you need to run this in a for loop. The following command will create desired number of users in the active directory:
for /L %i (1,1,<
e.g. if i want to create 2500 users with user name testUser1, testUser2,... with password 'test@123' then following command is needed to be executed:
for /L %i (1,1,2500) do net user testUser%i test@123
No comments:
Post a Comment