Having a local administrator of your workstations can come in handy. Sometimes you might need to logon locally to troubleshoot or rejoin a computer to your domain. You can create a group policy that creates a local admin users and sets the local password.
Admins make a common mistake when they want to add a security group the Local Administrator group for a particular set of machines or domain wide. The mistake they make is creating a restricted access group vs. just adding to the existing Administrators Group. The result it that it wipes out any existing Local Administrator permissions or memberships.
This can be accomplished with a Simple GPO.
I will cover both methods for clarification. First I will cover the correct way to add. The Second Method is how to add a restricted group.
Correct Way
CREATE THE SECURITY GROUP
- Open Active Directory Users and Computers
- Select your Security Group OU
- Right Click and select New > Group
- Give the Group a name, I used “AUTOMATIONâ€
CREATE THE GPO
- Launch Group Policy Management Console.
- Right click the OU that you want the GPO to apply to.
- Select “Create a GPO…â€
- This will Launch Group Policy Editor.
- Navigate to: Computer Configuration\Preferences\Control Panel Settings\Local Users and Groups
- Right Click in the blank area and select New > Local Group > Administrators (Built-in)
- Action: Update (This is the most important part).
- Add the needed security group. I have added my AUTOMATION Security Group.
- Click Apply.
- Click OK.
- Apply the GPO to the root of the domain OR the appropriate OU.
Incorrect Way (This is how you would create a Restricted Access Group)
If you want certain members to be local administrators of computers, you can do it through Group Policy. The idea here is to create a Local Admin security group and then a GPO that adds that security group to the local Administrators group of the computer.
CREATE THE SECURITY GROUP
- Open Active Directory Users and Computers
- Select your Security Group OU
- Right Click and select New > Group
- Give the Group a name, I used “SG – Local Adminsâ€
CREATE THE GPO
- Open Group Policy Management Console.
- Right click the OU that contains the systems you want to set the local admin on
- Select “Create a GPO in this domain, and Link it here…â€
- Name the GPO. I used “Set Local Administratorsâ€
- Right Click the GPO and select Edit.
- Set the following:
- Computer Configuration\Policies\Windows Settings\Security Settings\Restricted Groups
- Right Click and select “Add Group…â€
- Select browse and add the Administrators group
- Select OK
- Double click Administrators
- Select Add for “Members of this group:â€
- Browse and find your security group. I added “SG – Local Adminsâ€
That should be it. Now you can set which users of the domain are local administrators of their computers.
1 thought on “Adding a security group to the Local Administrator Group in AD”
Comments are closed.