Intune says onboarded, Defender says "Can be onboarded": what to check on the device
The device is enrolled in Intune. The EDR policy is assigned. The device is online and the browser opens everything. In the Defender portal, though, it sits in the device inventory as Can be onboarded: Defender has seen
The device is enrolled in Intune. The EDR policy is assigned. The device is online and the browser opens everything. In the Defender portal, though, it sits in the device inventory as Can be onboarded: Defender has seen it on the network, but the sensor never reported in.
The network side of this (proxy, WinHTTP, TLS inspection, the Intune connector) was Day 5 of this series. This post is about the next step: the network is fine, so what is wrong on the device?
Built from my own troubleshooting notes, rewritten with lab names (Contoso, lab-win11-02) and checked against Microsoft Learn (October 2026). The screens are drawings, not screenshots.
TL;DR
- Can be onboarded is a status for discovered devices: another onboarded device saw this one on the network. It says nothing about why the sensor isn't reporting.
- Check five things on the device, in order: who manages it,
OnboardingStateandOrgIdin the registry, the SENSE service, whether the MDM client can write the Defender policy key, and the two event logs. - Done when the device page says Onboarded with sensor health Active, and the discovered entry stops being the only one.
Table of contents
- Symptom
- Why it happens
- Fix: check in this order
- Prove it is fixed
- Gotchas
- Checklist
- Sources
Symptom
| Where | What you see |
|---|---|
| Defender portal, Assets > Devices |
lab-win11-02, Onboarding status Can be onboarded, the Not onboarded counter is 1 |
| Intune, EDR policy | Assigned to the device's group |
| Device | Online, internet works, connectivity tests from Day 5 pass |
Why it happens
The device inventory shows two kinds of devices. Onboarded devices run the sensor and report in. Discovered devices were found by onboarded devices watching or probing the network, and show Can be onboarded, Unsupported or Insufficient info. So "Can be onboarded" only means Defender knows this machine exists and no sensor on it reports to your tenant.
When the network is fine, the usual reasons are on the device:
| Reason | What it looks like |
|---|---|
| Onboarding never reached the device | Not really Intune managed, the policy never applied, or onboarding and offboarding policies both target it |
| Onboarded, but to another tenant |
OnboardingState = 1, but OrgId is not yours (an old onboarding package, a previous owner, a test tenant) |
| SENSE service not running | Onboarded, but the service is stopped, stuck, or the SENSE feature isn't installed |
| MDM client can't write the policy key | Intune reports an error, the onboarding blob never lands in HKLM\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection
|
Fix: check in this order
1. Is the device really managed by Intune?
Settings > Accounts > Access work or school > your work account > Info.
A Management Server Address on manage.microsoft.com means Intune manages it. If it's not there, the EDR policy will never reach this device: you are looking at a Group Policy or Configuration Manager device, and the onboarding has to come from there. Press Sync to pull policies now. In Intune, also make sure the device isn't targeted by both an onboarding and an offboarding policy: Learn calls that out as a cause of non-compliance.
2. Read OnboardingState and OrgId
When SENSE starts for the first time it writes its status to HKLM\SOFTWARE\Microsoft\Windows Advanced Threat Protection\Status.
Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows Advanced Threat Protection\Status" |
Select-Object OnboardingState, OrgId
-
OnboardingStatenot 1 (or missing): onboarding didn't finish. Go to step 4 and 5. -
OnboardingState= 1 andOrgIdmatches your tenant: onboarding worked, check the service (step 3). -
OrgIddoesn't match: the device reports to another Defender tenant. Offboard it with an offboarding package from that tenant (event 70 in the script log means you used the wrong one), then onboard with yours.
The easiest reference is the same value on a device you know is healthy in your tenant.
3. Is the SENSE service running?
sc query sense
sc qc sense
You want RUNNING. If it's stuck in a pending state, reboot. Error 577 or 1058 when you start it usually means the Defender Antivirus ELAM driver is disabled by a policy, which happens with some third-party antivirus setups. If SENSE isn't there at all, check the Feature on Demand:
DISM.EXE /Online /Get-CapabilityInfo /CapabilityName:Microsoft.Windows.Sense.Client~~~~
4. Can the MDM client write the Defender policy key?
Intune writes the onboarding blob through the Windows MDM client into HKLM\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection. Learn lists two causes for the generic 0x87D1FDE8 Remediation failed error here: the key doesn't exist, or the MDM client has no permission to write to it.
Open the key in Registry Editor > Permissions > Advanced and compare it with the same key on a healthy device. The drawing shows the kind of thing to look for: SYSTEM with only Read, or inheritance turned off by a hardening script or a security baseline. If the key doesn't exist, Learn says to create it from an elevated prompt. Fix the ACL, then Sync again.
5. Read the two logs
| Log | Look for |
|---|---|
| Event Viewer > Applications and Services Logs > Microsoft > Windows > SENSE > Operational | 6 (no onboarding parameters found), 7 (failed to read them), 10 (failed to persist onboarding info), 68 and 69 (service start type wrong or service stopped) |
| Event Viewer > Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostics-Provider > Admin | Errors from the Defender for Endpoint CSP, for example 1819 Failed to Set Node's Value |
If nothing makes sense, Learn's last resort for Intune devices is to download the Local script from the Defender portal's onboarding page and run it from an elevated prompt. That tells you quickly whether the problem is Intune delivery or the device itself.
Prove it is fixed
-
OnboardingState= 1 andOrgId= your tenant, still true after a reboot. -
sc query senseshowsRUNNING. - In the Defender portal, the device page shows Onboarded with sensor health Active (allow up to an hour). In Intune, the EDR onboarding report shows it as onboarded.
- Run the detection test from the onboarding page if you want an alert as proof.
Gotchas
- Two device entries. You may still see the old discovered entry for a while after the device onboards. Check the device name, the onboarding status and the last seen time before you decide it's still broken.
- "Can be onboarded" isn't a health state. It's an onboarding status for discovered devices. Filter by Onboarding status to find them, and by Sensor health state (Inactive, Misconfigured) to find onboarded devices that stopped reporting.
- Delayed start. Learn notes that when SENSE is set to Delayed Start, the SenseIsRunning check can look non-compliant for a while and fix itself within 24 hours.
- OOBE. If the user hasn't finished the out-of-box experience, onboarding can't complete even though SENSE is already running.
- Don't fix ACLs blindly. A security baseline may have set them on purpose. Compare with a healthy device and change only the key Defender needs.
Checklist
- [ ] Day 5 network checks pass (WinHTTP proxy, URLs, no TLS inspection)
- [ ] Access work or school shows
manage.microsoft.com - [ ] Only an onboarding policy targets the device, no offboarding policy
- [ ]
OnboardingState= 1 - [ ]
OrgId= your tenant - [ ]
sc query sense: RUNNING - [ ]
HKLM\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protectionexists and is writable by the MDM client - [ ] SENSE Operational and MDM Admin logs clean
- [ ] Device page: Onboarded, sensor Active
What's the strangest reason you've seen a device refuse to onboard?
Sources
- Troubleshoot Microsoft Defender for Endpoint onboarding issues
- Devices in Microsoft Defender for Endpoint
- Device inventory
- Onboard Windows devices using Intune
Thanks for reading! I'm Cuong, and on CD Security Lab I rebuild real Microsoft security cases in a safe lab and explain them simply. Follow along:
- โถ๏ธ YouTube (daily Shorts + explainers): CD Security Lab
- ๐ผ LinkedIn: Cuong Do
- ๐ Facebook: CD Security Lab
- ๐ธ Instagram: @cdsecuritylab
- ๐ More posts like this: Dev.to
Got a question about your own tenant? Drop it in the comments.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.



