Question Locked

AD 2003 need to add Domain user Group to local admin group on windows xp

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a windows 2003 Domain and would like to add a sub admin group and add them to the local Administrators group on my windows xp workstations. Plus, create a power users group and add them to the local Power users group on the workstations. One way I've done it is through login scrip and using "net local group". But, the login script only works if an Administrator logs in and runs it. I would like to use GPO to do this. Such as the default behavior of Domain Admins group is automatically added to the local administrators group.

5 replies

by p.j.hutchison

You can use the 'Restricted Groups' section of GPOs to do what you want, its in Computer Config, Windows settings.
As for Power Users, you have to do that differently, and use the Local Policies section and add your Power users group to the appropiate rights or Security Options.

by faubionb

I'm looking more for the ability to add AD groups to the local workstation groups (Administrators, power users).

by sliptrap

Group Policy will let you reset the Administrators or Power Users groups but not modify. We use it so that if anyone else makes a change to those groups GP will wipe out there changes and set it back to our settings. If you want to just ADD a group and not have it change any of the existing members then you need to use a script.

This is the script we use in our shutdown script

On Error Resume Next

'get main objects/variables
Set ws = WScript.CreateObject ( "WScript.Shell" )
compname = ws.ExpandEnvironmentStrings ( "%COMPUTERNAME%" )
Set adGrp = GetObject ( "WinNT://" & compname & "/Administrators,group" )

'add domain group "JRCH_MAIN\Local Desktop Admins" to local admin group
adGrp.Add ( "WinNT://JRCH_MAIN/LocalDesktopAdmins,group" )

'remove domain group "JRCH_MAIN\Technical Support Admins" from local admin group
adGrp.Remove ( "WinNT://JRCH_MAIN/TechSupAdmins,group" )

Hope this helps

by bkinsey1

Use your existing script as a startup script rather than a login script. Login scripts run under the context of the user logging in; startup scripts run under the local system account context.

This discussion is closed to new replies.