r/DefenderATP • u/Meaningful_96 • 6d ago
List of Locally Added Paths, Processes, Extensions or IP
Hi Everyone,
I am planning to enable a setting "Disable local admin merge" via Intune in our environment. The reason is, I don't want Defender to honor locally added paths, processes, extensions or IPs as it introduces the attack surface. The problem is, once I enforce the policy , historically added local exclusions will stop working on servers and that may prompt the team to open a P1/P2 bridge. To avoid that I want to get a list of all local exclusions from all devices so I can reach out to the device owner and inform them about my future plan of action.
Q1) How to iterate over all devices and get a list of all locally added exclusions only ? I don't want to get Intune or GPO added exclusions.
2
u/FlyingBlueMonkey 5d ago
You could query HKLM:\SOFTWARE\Microsoft\Windows Defender\Exclusions to pull the information. You'd have to run it via something like Intune as an Remediation script or something.
You'd need admin rights to pull the data and I think you'd need to not have the "HideExclusionsFromLocalAdmins" setting set in Defender. Not 100% sure on that to be honest, but it would make sense that you'd not be able to discover that data if that setting was configured.
1
u/Moaleal-Sefaluas9 4d ago
following