EPM - Remove Local Administrators Policy Doesnt Remove Some SID Types
135
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:11 PM
Symptom
The EPM Remove Local Administrators Policy doesn't remove a group from the local administrators group and in the vf_agent_srv.trace logs the following is shown
565:2023.02.01 13:34:26 PID:7276 TID:29784 CvfPolicyRemLocalUsersTask::_BuildList2Remove: RLUA: WARNING: Entry 4.
SID=S-1-5-21-770328738-1675309107-475923621-160031. DnN=[DOMAIN\Group1]. SidUsage=4. Skipped.
Environment
22.2;22.4;22.6;22.8;22.10;22.12 EPM
- Windows 10 endpoint
- Remove Local Administrators Policy enabled
- EPM Agent Version matching a version that this article applies to
Cause
EPM's Remove Local Administrators policy only removes objects with SID types 1,2 and 3 from the local administrators group. EPM does not remove SID type 4 (or higher) entries from a local admin group by design. This is because removing SID type 4 entries may cause unexpected removal of multiple aliases from admin groups in other environments.
You can list the local groups on a computer, with their SID types, by running this command from an elevated PowerShell prompt:
Get-WmiObject Win32_Account | select name,__CLASS,sidtype
In the following example, the output shows you that the objects with SID Type 4 would NOT be removed if they were in the Local Administrators Group. This is by design
Resolution
This is expected behavior, not a bug. The Remove Local Administrators policy is not removing an object with SID type above 3 by design