Add large number of users (with/without) admin rights | Nagarams Blog

Tuesday, 24 June 2014

Add large number of users (with/without) admin rights

Rate this Post:

When we are working as system administrator, it is frequent to format the systems/servers.

When there is a need to create or add a large number of users with specific permissions,
it is difficult to create each user from control panel-->users-->new user.

so my friends

Here is a simple script file which adds specified number of users with a double click, with or with out admin permissions, and with different user names with same password.

-------------------------------------------------------------------------------------
@echo off
:a
cls
echo ADD users with ADMIN rights
echo The Password for the account you are adding is user@123
echo You can change password by editing the script
set /p n=name:
net user /add %n% user@123
net localgroup administrators %n% /add
cls
paus
goto :a

--------------------------------------------------------------------------------------

Copy the script in a text file, and save it as .bat file.
Run it as Administrator.
when u run it, it will ask for user Id then type user id.
it will repeat asking user Id, then give ids as many numbers of users as u need.

Note:

U can remove admin rights for users by deleting the line in the script given below:

net localgroup administrators %n% /add

You may also like:

How to modify IPv4 settings via CMD or. Bat file

Automatic Proxy for Mozilla Firefox for all the users in windows OS
How to give Admin rights to a specific User or All Users for an Application
Forgot Windows Log-In Password 
Forgot windows log-in Password-2

Thank you for visiting.

Please leave a comment

No comments :

Post a Comment