adding a global group to a local group via command line

G

Guest

I have an AD global group that I would like to add to the local
administrators group on many workstations. Is there a way to do this via a
script remotely? Thanks
 
P

ptwilliams

The easiest way to do this is either via Restricted Groups (GPO) or a simple
startup script that uses the net localgroup command. However, you could
also write something in VBScript that would go off and do this on a per
machine basis if you so wanted to...

The command for the batch file that would be the startup script would be:

net localgroup administrators DOMAIN\UserName /add

--

Paul Williams

http://www.msresource.net/
http://forums.msresource.net/
 

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