Favicon

You are here: Home > Device Management > Windows > Get Started > Manage the Local Administrators group on Windows devices

Manage the Local Administrators group on Windows devices

Centrally manage the Local Administrators group on enrolled Windows devices with Applivery. Add or remove users and groups automatically and consistently.

Managing the Local Administrators group is essential for maintaining security and operational control over Windows devices. Granting administrative access only to trusted users or service accounts helps prevent unauthorized changes, limits the attack surface, and ensures compliance with organizational policies.

With Applivery, you can centrally manage the Local Administrators group on all enrolled Windows devices by applying a policy configuration. This allows IT administrators to add or remove specific users or groups from the local administrators group across the entire device fleet—automatically and consistently.

Note

The group policy we’ll use can manage various local groups; however, this article will focus specifically on managing the Local Administrators group.

Local Users and Groups

Once in the Applivery dashboard, head to the Device Management section and select Policies (1). Choose the policy where you want to create an admin user.

Next, in the left-hand menu, select + Add configuration (2), and search for Local Users And Groups (3). 

local-users-and-groups

We will use the following template:

<GroupConfiguration>
  <accessgroup desc = "">
    <group action = ""/>
    <add member = ""/>
    <remove member = ""/>
  </accessgroup>
</GroupConfiguration>

Here's a breakdown of the XML elements:

  • <GroupConfiguration>: Encloses the entire group management configuration.
  • <accessgroup desc="">: Defines the local group you want to manage (e.g., Administrators).
  • <group action=""/>: Specifies how the group membership should be managed:
    • U = Update: Modifies the group by adding or removing only the specified members. Existing members not mentioned will remain unchanged.
    • R = Replace: Clears all current members and replaces them with the ones defined. Use only <add member=""/> with this action.
  • <add member=""/>: Adds a user or group to the specified access group.
  • <remove member=""/>: Removes a user or group from the specified access group.
Note

This configuration does not create new users or groups; it only manages those that already exist on the device.

user-account-creation

Administrator group management example

In this example, our goal is to replace all current members of the local Administrators group with only the users explicitly defined in the XML configuration.

1
Current Group State

The existing Administrators group contains three users.

members

2
Target Group

We define the group we want to manage—in this case, the Administrators group. This can be identified in two ways:

  • By name: Use Administrators if all your devices share the same OS language.
  • By SID: Use the well-known SID S-1-5-32-544 to avoid localization issues, since the group name varies depending on the operating system’s language.
3
Group Action - Replace

We use the R (Replace) action in the <group> node. This will remove all current members of the group and replace them with those defined in the XML.

4
Define Members

Use <add member=""/> to specify the users or groups you want to include.

In this case, we want only Administrator and Applivery to remain in the group.

xml-configuration

5
Outcome

Once deployed, the Administrators group will contain only the users defined in the XML. All others will be removed.

final-admins-group

Note

If you’re managing the built-in Administrator account, remember that its name also varies based on the OS language. To avoid inconsistencies, you can rename it across all devices using the Accounts Rename Administrator Account setting under the Local Policies Security Options group policy.

local-policies-security-options