How can I automate adding 2-3 domain groups to 2-3 local groups?

C

Corey Arndt

I am looking to automate adding a domain group to a local computer group.

Example
Domian group corp\TECHS needs to be put into the local computer group
comp\Power Users.

What options do I have and what do you recommend? Mostly this will be used
only during the install of the computer and a batch file will work just
fine.

Thank You
 
S

Steven L Umbach

You could use the net localgroup command in a batch file such as net
localgroup "power users" "mydomain\globalgroup1" /add but the computer will
need to be a member of the domain and have access to a domain controller for
that to work. You can also use Group Policy Restricted Groups to add domain
global groups to a local group of a domain computer as described in the link
below that uses administrators local group as the example. Since there is no
power user group at the domain level simply type power users as the group
name. --- Steve

http://www.windowsecurity.com/articles/Using-Restricted-Groups.html
 
C

Corey Arndt

Thank you very much, I had forgotten about this utility...This work
wonderfully.
Thanks again
 

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