How to add, delete, or change passwords for rUsers via command line?

You can add or remove user accounts for Injector machines by using the following commands. Make sure you run the below commands as an Administrator.

Add rUsers:

FOR /L %i in (1,1,99) do net user rUser00%i Welcome123 /add [/DOMAIN]
FOR /L %i in (10,1,99) do net user rUser0%i Welcome123 /add [/DOMAIN]
FOR /L %i in (100,1,199) do net user rUser%i Welcome123/add [/DOMAIN]

*Here Welcome123 is a password and /DOMAIN option will add the user to the domain that the computer is connected to. 

 

Delete rUsers:

FOR /L %i in (1,1,9) do net user rUser00%i /delete
FOR /L %i in (10,1,99) do net user rUser0%i /delete
FOR /L %i in (100,1,199) do net user rUser%i /delete

 

Update the Password:

FOR /L %i in (1,1,9) do net user rUser00%i  NEWPASSWORD
FOR /L %i in (10,1,99) do net user rUser0%i NEWPASSWORD
FOR /L %i in (100,1,199) do net user rUser%i NEWPASSWORD