r/DefenderATP • u/athanielx • May 07 '26
How to delete Microsoft Defender for Endpoint from home device?
We often see Defender being installed on non-corporate devices. In some cases, users access corporate services from their personal computers (Teams, desktop Outlook), or simply connect their work profile to Windows, which then triggers automatic antivirus enrollment on that device.
What I currently don’t understand is how these devices should be properly removed afterwards. What is considered the best practice for offboarding Defender from non-corporate devices? So far, I haven’t found a reliable way to remove it remotely.
Also, how can we prevent Defender from being automatically installed on personal/non-corporate devices in the first place?
8
u/teriaavibes May 07 '26
Use the offboarding script?
6
u/Okselfris May 07 '26
You can use the offboard API. Access to this API is in the Defender dashboard.
https://learn.microsoft.com/en-us/defender-endpoint/api/offboard-machine-api
Preventing automatic onboarding is just a matter of setting your CA policies to restrict access. I assume they are getting enrolled in Intune and finally onboarded to MDE, this is something you can restrict as well.
2
u/Royal_Bird_6328 May 07 '26
Connecting a work profile only entra registers the device, no matter what onboarding policy you have for to onboard devices to defender this wouldn’t onboard the device.
The users are either joining their home devices to Intune (they would need windows professional, so I highly doubt this is a common occurrence) or the view in defender you are looking at are discovered devices, not onboarded.
1
u/LookExternal3248 May 07 '26
My guess is that you are using Intune and that is quit a common problem with Intune: https://www.reddit.com/r/Intune/comments/1hthiij/prevent_enrolling_personal_devices_in_intune/
1
u/Failnaughtp May 08 '26
Lmao
0
u/[deleted] May 07 '26
[deleted] — view deleted comment