Link to home
Start Free TrialLog in
Avatar of cbexpert
cbexpert

asked on

Local Admin Group nesting in Administrators Group

I am new to the company I work for and:

Recently I discovered a GPO that had a "Restricted Group" setting effectively nesting a manually created AD Group Object titled "Local Admin" within the "Administrators Group" effectively giving all members of the "Local Admin" group object Administrative permissions throughout the Domain.

I removed the setting, disabled the GPO, and deleted the GPO.  I also, have deleted about 22 other GPO objects that just weren't needed and seemed to be leftovers from failed tests and attempts at using Group Policy.

I am 100% positive that there is NO GPO that contains this setting any longer, however ever morning, I check the "Administrators Group" and low and behold the "Local Admin" group is again nested in the "Administrators Group".  

I can't find any documentation pointing to this as normal or default behavior...

What am I missing?  Why is this happening? Where is it coming from?

Any ideas?

Thanks!
Avatar of donnk
donnk

do a search in GPO for 'local admin' to track it down

http://technet.microsoft.com/en-us/library/cc730949.aspx
Avatar of cbexpert

ASKER

This will not work.  This only allows you to search for a GPO by name.  Also, I looked at the other search options and it will not let you search based on Restricted Groups or on a Group Object name within a GPO setting.

Also, at this time I have exactly 6 GPO as you can see each GPO listed under the container "Group Policy Objects".

Thanks for the suggestion though.
ok thanks for the clarification, you may have tattooing going on:

http://gpoguy.com/whitepapers/understanding-policy-tattooing/
Avatar of Mahesh
You need to run rsop.msc on affected computers and identify if still any restirctied GPO is applying or any computer startup script is applied from any GPO which will add domain groups to local groups

Also one more place you need to look, i.e. Group policy preferences, there also this setting can be done very nicely
You need to check all GPOs applied to default domain level and OU level where computer and user  resides as preferences can be applied on users as well

Probably rsop.msc \ gpresult will provide you detailed info regarding applied GPOs.

Hope that helps

Mahesh
This could be due to orphan GPO which may be causing the issue.Donload resource kit tool and run gpotool you will get the list of GPO and name which is present in AD database.Check the sysvol content and delete the quid if orphan GPO is present.You also need to check in CN=Policies,CN=System,DC=DomainName,DC=com using ADSIEdit.

You can also create new OU move couple of user and enable block inheritance check if still the restircted GPO is applied.You can run rsop on client computer or from DC in planning mode or logging mode to check if any GPO is causing the issue.http://technet.microsoft.com/en-us/library/cc758010(v=ws.10).aspx
Your mistake: to remove the group, you should have just removed the group within the restricted group GPO but you may not delete the GPO before it had taken effect. Since you have already done it, you will need another GPO with restricted groups or use a startup script/shutdown script with the command
net localgroup /delete administrators "local admin"
The author comment:
"however ever morning, I check the "Administrators Group" and low and behold the "Local Admin" group is again nested in the "Administrators Group". "

It means even after deleting "local admin" group from local administrators group, the group is added again at next reboot.
Correct if I am wrong.

If you removed all GPOs, then it should not add "local admin" group again
There must be some policy left...

You can apply another policy on computers to remove particular "local admin" group and enforce the policy as well so that it will override any other conflicting policies.

Mahesh
> It means even after deleting "local admin" group from local administrators group, the group is added again at next reboot. Correct if I am wrong.
-you are wrong :)
The GPO does not add this group "per session", but permanently. So no wonder it stays there if he simply deletes the policy. [He changed the policy first, yes, but it won't have applied already anwhere]
You are not getting my point
I am not talking about group deletion from GPO.
it means after logon to machine, he checked local administrators group, he found "local admin" group as member, he deleted \ removed that group manually and then he shutdown the machine EOD.
Now next day when he started the the machine, he again go to local administrators group, he again found the "local admin" group there as member.

cbexpert, please confirm
is that happening with you ?

You can apply another policy on computers to remove particular "local admin" group and enforce the policy as well so that it will override any other conflicting policies.


Mahesh
ASKER CERTIFIED SOLUTION
Avatar of cbexpert
cbexpert

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Solved issue myself