PC Review


Reply
Thread Tools Rate Thread

Adding global groups to local admin groups on remote machines

 
 
Shawn
Guest
Posts: n/a
 
      12th Apr 2004
(win2k network)

I have about 1400 machines in the building I support. I
want to put a couple of administrative groups in each
machines local admin group. The problem is that the only
current permissions I have would require me to log in to
each machine as the local admin and add the groups. I
have been using the console useradmin from the resource
kit and was able to put together a script that attempts to
put these global groups in each machines local admin group
but most of them fail due to permissions issues. All the
local machines have the same local admin login and
password. So I guess I am looking to either automate the
login to each machine for this script to run with the
permissions it needs (such as a remote runas w/sanur) -(I
have thought of using psexec but this would be an extreme
hassle as I would have to copy a resouce kit file to every
single machine.) Or maybe if there is a way to have this
run from each machines system account? Or is there
something different all together anyone could recommend?

thx

-shawn
 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      12th Apr 2004
are there any commands that accept %localmachine%
\administrator or something similar?

thx

-s
>-----Original Message-----
>(win2k network)
>
>I have about 1400 machines in the building I support. I
>want to put a couple of administrative groups in each
>machines local admin group. The problem is that the only
>current permissions I have would require me to log in to
>each machine as the local admin and add the groups. I
>have been using the console useradmin from the resource
>kit and was able to put together a script that attempts

to
>put these global groups in each machines local admin

group
>but most of them fail due to permissions issues. All the
>local machines have the same local admin login and
>password. So I guess I am looking to either automate the
>login to each machine for this script to run with the
>permissions it needs (such as a remote runas w/sanur) -(I
>have thought of using psexec but this would be an extreme
>hassle as I would have to copy a resouce kit file to

every
>single machine.) Or maybe if there is a way to have this
>run from each machines system account? Or is there
>something different all together anyone could recommend?
>
>thx
>
>-shawn
>.
>

 
Reply With Quote
 
Oli Restorick [MVP]
Guest
Posts: n/a
 
      12th Apr 2004
The way I do this is to use a computer startup script in active directory
containing the following.

net localgroup administrators wksadmins /add /domain

Because this runs as a computer startup script, it runs in the context of
the local computer, rather than a user.

There is also the restricted group feature of Active Directory, but it has
the side-effect of removing any existing members of the group.

Hope this helps

Oli



"Shawn" <(E-Mail Removed)> wrote in message
news:1bbae01c420c7$7fac3730$(E-Mail Removed)...
> (win2k network)
>
> I have about 1400 machines in the building I support. I
> want to put a couple of administrative groups in each
> machines local admin group. The problem is that the only
> current permissions I have would require me to log in to
> each machine as the local admin and add the groups. I
> have been using the console useradmin from the resource
> kit and was able to put together a script that attempts to
> put these global groups in each machines local admin group
> but most of them fail due to permissions issues. All the
> local machines have the same local admin login and
> password. So I guess I am looking to either automate the
> login to each machine for this script to run with the
> permissions it needs (such as a remote runas w/sanur) -(I
> have thought of using psexec but this would be an extreme
> hassle as I would have to copy a resouce kit file to every
> single machine.) Or maybe if there is a way to have this
> run from each machines system account? Or is there
> something different all together anyone could recommend?
>
> thx
>
> -shawn



 
Reply With Quote
 
=?Utf-8?B?RnJhbmsgVy4=?=
Guest
Posts: n/a
 
      22nd Apr 2004
You can use "Net Group". But this only run from a Server

Next is WSH. It is very fast and you can use it from any Machine o
put it in the Logon. Lokk at the link below
http://msdn.microsoft.com/library/de...i/iadsgroup.as

Greets, Frank
 
Reply With Quote
 
Oli Restorick [MVP]
Guest
Posts: n/a
 
      24th Apr 2004
Only run from a server? I was talking about running it on the local machine
group policy.

What I described is the way I do this.

Regards

Oli


"Frank W." <(E-Mail Removed)> wrote in message
news:FCE3BF9B-E61F-4AFE-8712-(E-Mail Removed)...
> You can use "Net Group". But this only run from a Server.
>
> Next is WSH. It is very fast and you can use it from any Machine or
> put it in the Logon. Lokk at the link below:
> http://msdn.microsoft.com/library/de.../iadsgroup.asp
>
> Greets, Frank



 
Reply With Quote
 
Matt Hickman
Guest
Posts: n/a
 
      24th Apr 2004
"Shawn" <(E-Mail Removed)> wrote in message news:<1bbae01c420c7$7fac3730$(E-Mail Removed)>...
> (win2k network)
>
> I have about 1400 machines in the building I support. I
> want to put a couple of administrative groups in each
> machines local admin group.


If your 1,400 machines are in your AD, you can put global groups
in the local administrators with the "restricted groups" Group
Policy setting.

Computer Configuration\Windows Settings\Security Settings\Restricted Groups

the following link contains detailed instructions
http://support.microsoft.com/default...;EN-US;Q320065

--
Matt Hickman
Ancient history is awesome.
- Robert A. Heinlein _Citizen of the Galaxy_
 
Reply With Quote
 
=?Utf-8?B?RnJhbmsgVy4=?=
Guest
Posts: n/a
 
      26th Apr 2004
The command 'Net Localgroup Administrators GlobalGroup / Add / Domai
don`t work on my W2K Pro Machine. Only I can add is a local Group
I`m not a Full Admin of my Domain and I can`t create any new Policy, so I have to do it from the Clients Workstation
I try to do it with 'Net localgroup, but it doesen`t work. Should I do anything wrong
I realize it with vbs like this
'Set grp = GetObject("WinNT://Domain/"& pc &"/Administrators"
'grp.Add("WinNT://GlobalGroup"
'Set.Inf

I can use this Script from any Workstation and it works great
But I`m also interrested how do you use the "Net localgroup" command from a Workstation

Regards, Frank
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding global groups to local machine group =?Utf-8?B?TWFya0BWRVJJVEFT?= Windows XP Security 1 11th Nov 2004 09:25 PM
Adding Groups to Local Admin group using GPO Joe Microsoft Windows 2000 Active Directory 6 9th Oct 2004 02:29 PM
? upgrade to windows 2000 + native mode, now cannot add global groups into member servers local groups? g Microsoft Windows 2000 Active Directory 1 3rd Dec 2003 10:48 AM
Easiest way to add Domain Global Groups to Local Workstation Groups Nick Piermarini Microsoft Windows 2000 Group Policy 1 24th Nov 2003 09:35 PM
Adding user to local admin groups Matt Microsoft Windows 2000 Deployment 0 7th Oct 2003 06:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:25 AM.