Simple way to add users to local admin group

G

Guest

I have about 20 computers (connected to a domain) that 30 users use, each
user will use mulitple computers. Rather than go to every computer and add
all 30 users to be local administrators I would like a script that will do
this for me. The users need to be local admins becuase of the software they
are using. Is there a script or some tool that I can easily use to add users
to the local administrators group of a computer?

~Scott
 
P

Pegasus \(MVP\)

Scott said:
I have about 20 computers (connected to a domain) that 30 users use, each
user will use mulitple computers. Rather than go to every computer and add
all 30 users to be local administrators I would like a script that will do
this for me. The users need to be local admins becuase of the software they
are using. Is there a script or some tool that I can easily use to add users
to the local administrators group of a computer?

~Scott

Use psexec.exe (www.sysinternals.com) to run this command on
each machine:

net localgroup administrators "domain users" /add
 
G

Guest

Actually I wased that command without the psexec.exe by adding it to a GPO as
a computer startup script. Thanks for the script though.
 
P

Pegasus \(MVP\)

"I wased that command . . ."? Meaning?


Scott said:
Actually I wased that command without the psexec.exe by adding it to a GPO as
a computer startup script. Thanks for the script though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top