Re: Add user/group to local group via Group Policy



thanks for the reply. then net command, using a batch file, set as a
loggon/loggoff script is the route i choose and it is working perffectly.
Thanks.
--




"Joseph M." wrote:

There are a few different ways to handle this. One way may be to add a GPO
based logon script. Using a conditional (if/then for group membership), you
could run the following command:

net.exe localgroup administrators "Your.Domain.Name\Domain Admins" /add

Keep in mind this is a shell command and would need to be ran from a .cmd or
..bat file. There are several examples out there to accomplish this via
VBScripting as well.

Take a look at the following sites for examples:
http://www.microsoft.com/technet/scriptcenter/default.mspx
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vbscripttoc.asp
http://www.scriptinganswers.com/
http://cwashington.netreach.net/main/default.asp?topic=news

Desktop Authority could also handle this for you, www.scriptlogic.com/da.
The "Application Launcher" Object could process the command I referenced
above with Admin Rights at Logon, Logoff and a Refresh interval. the
Refresh interval would ensure the group membership was correct throughout
the day.

Best,

--
Joseph Majzoub
Systems Engineer
ScriptLogic Corporation
www.scriptlogic.com



"RollNpc" <RollNpc@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AA5EC2E6-0183-4BD5-8D16-C15C31051D16@xxxxxxxxxxxxxxxx
I want to add/force my domain administrators group to all machines in my
domain via group policy without disruption of service and without changing
any current memebers.

Some of my local administrators have removed the domain administrators
accounts from the local groups and i want to put the domain admins back
in.
If i use the standard GPO it replaces memeberships, i just awant to add
the
domain admins.


--





.



Relevant Pages

  • Re: Finding users of a specific group and listing memberships of those
    ... > Hi...I am trying to write a script that will list users of a specific ... > Domain Admins group, I want it to list all those users group memberships. ... reveals direct group membership, ... script may show that group as empty. ...
    (microsoft.public.windows.server.scripting)
  • Re: Exchange OWA 2003 Trusted Root Certificate
    ... Let me ask you, is there a way to force this to take place, without a reboot, ... say from a script or command line, making it transparrent to the users. ... The new group membership won't show up on ...
    (microsoft.public.win2000.security)
  • Re: Problem with Logon Script
    ... Do you know what the command would be to dissconnect an already mapped drive? ... I found a sample script that I'm trying to modify, but am getting an error when it runs. ... What I want to do is map drives based on Group membership. ... Not all of the groups I have defined in the script right now have members, and therefore are not attempting to map drives for them. ...
    (microsoft.public.scripting.vbscript)
  • Re: OLD x400 not working on new Exchange PLEASE HELP
    ... ADModify works well and has a nice GUI for the command line phobic, ... I posted a script to do the same thing based on group membership last month ... And if you want to do this in bulk: admodify can help. ...
    (microsoft.public.exchange.admin)
  • Re: Problems trying to configure Linux laptop to print to Windows XP shared printer
    ... map to guest = Never ... check password script = ... enumports command = ... ldap delete dn = No ...
    (comp.os.linux.setup)