Need to script adding a domain group to the local administrators group



Babbit
07-10-2005, 02:10 AM
Need to script adding a domain group to the local administrators group.
On a ton of both windows XP machines, and Windows 2000 machines.
I have access to the windows 2000 resource kit.

I was wondering if there was a command, or utility to go about doing this.
Thanks in advance

David H. Lipman
07-10-2005, 02:10 AM
From: "Babbit" <me@me.com>

| Need to script adding a domain group to the local administrators group.
| On a ton of both windows XP machines, and Windows 2000 machines.
| I have access to the windows 2000 resource kit.
|
| I was wondering if there was a command, or utility to go about doing this.
| Thanks in advance


The best place to ask a question such as this is in;
microsoft.public.windows.server.scripting

Add to the Kix script something to the effect of...

net localgroup administrators "AD_DOM\DOM_GROUP" /add

This should be added to the NT/AD Domain Logon Script. It should be scripted such that
command is executed only onece and not on subsequent logins.

--
Dave
http://www.claymania.com/removal-trojan-adware.html
http://www.ik-cs.com/got-a-virus.htm

Babbit
07-10-2005, 02:10 AM
> net localgroup administrators "AD_DOM\DOM_GROUP" /add
>
> This should be added to the NT/AD Domain Logon Script. It should be
> scripted such that command is executed only onece and not on
> subsequent logins.
>

Net localgroup works perfectly. Thanks a bunch.


Need to script adding a domain group to the local administrators group