Add Domain Global Group to Local Security with script

What is the easiest way to add a Domain Global Security Group to a Local Security Group using a script?  I am a rather wimpy script writer.  I know that I can add a domain user to a local security group using the NET command.  I would rather add a Domain Global Group to the Local "Administrators" Security Group, that way I can control access to the privilege buy controlling membership in the Domain Global group.

Windows Server 2003 Domain with Windows 2000 Pro Workstations.

Thanks.
rdienhartAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Debsyl99Connect With a Mentor Commented:
Hi

What's the problem with adding the following to a batch file?

net add localgroup /administrators "globalsecuritygroupname"   ?

It's simple, it works for global security groups too (at least it does on my domain) - just add it as or to a .bat file in a start-up script in a computer policy of a gpo linked to an OU containing the pc's you want to add it to. Please let me know if somehow I've missed the point,

Deb :))
0
 
KaliKoderConnect With a Mentor Commented:
0
 
BigC666Commented:
0
All Courses

From novice to tech pro — start learning today.