EPM - Remove Local Administrators Policy Removing User that Should Be Excluded
127
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 16:05 PM
Symptom
This article is only intended for issues where ALL of the following are true:
A) A local user is being removed from the local administrators group by EPM's remove local administrators policy, even though there is an exclusion for the user in the policy scope.
B) The SupportInfo's vf_agent_srv.trace logs show an error like this (where "localadmin" is the name of the local user which was removed)
2023.12.11 14:35:36 PID:9392 TID:10244 CvfWinBaseElem::FillFromOldXML: NOTICE: Brand new user 'S-1-5-21-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-1002' has mismatch account name (actual: 'localadmin', provided: 'localadmin', [read from Windows: domainName = '' , accountName = '']) --> using value from XML As Is.
C) The SupportInfo's inventory.trace shows an entry like this for that local user, which has a different SID
Name: localadmin
Description:
SID: S-1-5-21-2113002166-521384454-2312053673-1003
Domain: Computer01
Is Local: Yes
A) A local user is being removed from the local administrators group by EPM's remove local administrators policy, even though there is an exclusion for the user in the policy scope.
B) The SupportInfo's vf_agent_srv.trace logs show an error like this (where "localadmin" is the name of the local user which was removed)
2023.12.11 14:35:36 PID:9392 TID:10244 CvfWinBaseElem::FillFromOldXML: NOTICE: Brand new user 'S-1-5-21-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-1002' has mismatch account name (actual: 'localadmin', provided: 'localadmin', [read from Windows: domainName = '' , accountName = '']) --> using value from XML As Is.
C) The SupportInfo's inventory.trace shows an entry like this for that local user, which has a different SID
Name: localadmin
Description:
SID: S-1-5-21-2113002166-521384454-2312053673-1003
Domain: Computer01
Is Local: Yes
Environment
23.12 EPM Windows Agent
EPM - This article is only intended for issues where ALL of the mentioned scenarios are true!
Cause
Possibly related to the endpoints caching of username-to-SID translation, combined with multiple users with the same name (or the user being recreated with a different SID)
Resolution
Each of the following resolutions is a separate possible solution to the issue:
Solution #1
If the policy exclusion entry was just entered as a username without a domain, you can try the following:
EPM Console > Default Policies > Remove Local Administrators > edit > "Policy Scope" section > Edit > Add the user in the format of .\username
Solution #2
Perform a full uninstall and reinstall by either
-
uninstalling from the console (My computers > upgrade or uninstall agents > right click endpoint > Uninstall checked)
-
Or msiexec /x command with full_uninstall="Yes"
-
Then reinstall
Note: Uninstalling using either method will clear the extended attributes such as source. Please take this into consideration if you use any policies that depend on source URL, source email, source is SCCM, etc.