In this guide, I am going to explain how to manage local administrators using Group Policy in a domain environment.
The Reason Why
Recently I was tasked with granting Local Administrator access to our HelpDesk group. The easy way would have been to “spill the beans” and hand out our local administrator password. However, out of security purposes we decided against that.
Rather, access was granted to a security group and that group was added to the local administrators group on every computer in our domain. This was accomplished all through the use of a GPO (Group Policy Object).
Here is how I deployed it.
Step 1 – Make Sure You Have A Security Group
We could have easily just added user accounts when deploying the GPO however, that is not the easiest way to manage local administrators. This is because every time that there is a change that is needed, the GPO would have to be modified. By using a security group, changes can easily be made to it and the policy does not need to be touched again.
Step 2 – Create Your GPO
- Log into one of your domain controllers
- Open Group Policy Management Console
- Locate the Group Policy Objects Folder/Container
- Right click on the Group Policy Object folder and Select “New”
- Now give your policy a name. I named mine CC-Local Administrators Mgmt
- Next locate your newly created policy
- Right click on it and select “Edit”
- Browse to Computer Configuration>Policies>Windows Settings>Security Settings>
- Select Restricted Groups
- Right click on Restricted Groups and Select “Add Group…”
- The dialog box will open and will ask you to select your group.
- Enter “Administrators” and click OK
- Now you will enter the security groups that you want to have local administrator access into the “Members of this group:”
- Click “Add…” under the “Members of this group:” container
- Click OK once completed
- Now you will need to attach/link the new GPO to the OU that contains the computers that you want to have this setting apply to
Step 3 – Test Deployment
Once that is set, go to a PC on the domain and run gpupdate /force a couple of times and then check the local administrators group on the PC to verify that the security group is now listed.
All done! You can now easily manage local admins from a security group!
Remember that once this is set all other previous users in the local administrators group will be removed. Make sure to add Domain Admins into the security group as well.