| HOW TO: Add a domain group or user to the local Administrators group |
|
The question of how to add a domain group to the local administrators group of a client or number of clients is probably one of the most popular questions in the Microsoft Public Active Directory newsgroups. And the answer is the same almost every time - use one of the following methods:
Restricted GroupsRestricted Groups is a security setting that was designed to resolve the potential problem of somebody adding unauthorised objects to a group. This addresses issues ranging from an administrator temporarily adding a user into a group and forgetting to remove the user to a malicious attempt to add and remove users from a group.However, due to the way in which it works, it also gives administrators the flexibility to centrally manage local, domain-member, groups. It is for this reason, that the feature is covered here -for adding a domain group to the local Administrators group of all computers within scope of a GPO. The restricted groups feature can be configured in two different ways:
Implementing Restricted GroupsYou implement restricted groups through GPO. To do this, perform the following instructions.
Note. You must be careful which option you select here. If you use the “Members of this group” option, instead of the “This group is a member of” option, then once this policy is defined, only the objects listed in the “Members of this group” box will be members of that group. Any other members will have been removed. If you follow the instructions and use the “This group is a member of” option then the security principals that you add will be added to the existing membership of the group you are configuring, in this case the Administrators group. Note. It is often recommended that you implement this policy from a workstation with the Windows Server Administration Tools (ADMINPAK.MSI) installed. This is because you can then use local groups that you cannot find on a Domain Controller such as the Power Users group. Startup scriptAny user account and /or applicable group (this statement doesn't include invalid nesting operations) can be added to a local group provided the operation is undertaken with suitable credentials (security context). In order to add a domain group to a user group, you would use the following command:net localgroup For example, to add the testlab.com (TESTLAB) Domain Local Group Desktop Admins to the local Administrators group you would write the following: net localgroup Administrators /add TESTLAB\Desktop Admins Note. This particular example assumes that the domain is running in Native mode. In mixed mode, domain local groups are only valid on Domain Controllers. To implement the NET LOCALGROUP command in a startup script you would perform the following steps: Create the script
Create the GPO
Further readingGroup Policy
Restricted GroupsStartup ScriptsOther links of interestGroup Policy Management Tool (GPMC): site:microsoft.com "group policy" | GPO Document informationAuthor: Paul WilliamsWritten: 10-04-2004 Version: 2.1 Last updated: 14-01-2008 Last updated by: Paul Williams |