0

Does anyone know how to create a batch or script file for loading users into the Local Groups Adminstrator folder of an XP PC. We have about 150 users that we would like to make administrators on for several test PCs and would like to do this with a batch or script file. If anyone knows how to do this please reply back with the syntax to place in the batch or script file.

Thanks,

T. Eynon

2
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by T. Eynon
0

I have done it before and cant quite remember but this should set you off:

net user domain\user /add localhost\administrator

You can run it as a logon script but the script must have admin rights therefore you will need to logon to each machine to use it or use a Group Policy. You can use the variable %username% for the logged on user.

Hop this helps.

0

I have done it before and cant quite remember but this should set you off:

net user domain\user /add localhost\administrator

You can run it as a logon script but the script must have admin rights therefore you will need to logon to each machine to use it or use a Group Policy. You can use the variable %username% for the logged on user.

Hop this helps.

Thanks for the advice. I was able to get it to work using the following in a batch file:
net localgroup administrators /add %domain%\%user%

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.