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

  • Thread starter Thread starter Corey Arndt
  • Start date Start date
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
 
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
 
Thank you very much, I had forgotten about this utility...This work
wonderfully.
Thanks again
 
Back
Top