Favicon

You are here: Home > Device Management > Windows > Get Started > Manage Local Administrators

Manage Local Administrators

Learn how to centrally manage the Local Administrators group on Windows devices using Applivery. Add or remove users and groups easily.

5 min read

TL;DR

Centrally manage the Local Administrators group on Windows devices with Applivery using policy configurations to add or remove users and groups.

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 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.

Warning

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

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.

  1. 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.

  2. 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.

  3. 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.

configure group
  1. Outcome:

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

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.

rename account

Key Takeaways

  • Managing the Local Administrators group is crucial for Windows security.
  • Applivery simplifies local admin group management through policy configurations.
  • XML configurations allow for precise control over group membership.
  • Using SIDs avoids localization issues when managing groups.
  • The 'Replace' action in XML configuration removes all existing group members.