About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
The onboarding finished, no tool reported an error, and an hour later the device is still not in the Devices list of the Microsoft Defender portal. Microsoft's own wording for this situation is: "If you've completed the onboarding process and don't see devices in the Devices list after an hour, it might indicate an onboarding or connectivity problem." What follows is Microsoft's checklist for that situation, in the order Microsoft gives it, with what each check proves. Nothing before the Fix section changes anything.
What the error means
There is no single error message. The symptom is an absence: a device that should be reporting is not listed. Microsoft's page separates two cases. In the first, a deployment tool reports an error, and the page sends you to the tool's own troubleshooting: Group Policy, Microsoft Configuration Manager, a local script or Microsoft Intune. In the second, "the deployment tools used do not indicate an error in the onboarding process, but devices are still not appearing in the devices list in an hour", and the page lists five verification topics to work through on the device itself:
- View agent onboarding errors in the device event log.
- Ensure the diagnostic data service is enabled.
- Ensure the service is set to start.
- Ensure the device has an Internet connection.
- Ensure that Microsoft Defender Antivirus is not disabled by a policy.
Everything below concerns the second case. For the two specific events that say the device is not onboarded or cannot connect, Microsoft's event reference carries the details; the checks here are what to do when there is no obvious event or when the events point to the diagnostic data service or to antivirus policy.
Microsoft's table of events adds a timing note worth keeping in mind: after event 11, "Onboarding or reonboarding of Defender for Endpoint service completed.", the event page says "It might take several hours for the device to appear in the portal." The onboarding page uses the shorter figure of an hour. The two pages are not reconciled, so judge a device that completed onboarding minutes ago by the longer figure.
Likely causes
Microsoft does not rank causes. Each of its verification topics maps to something specific:
| Check | What Microsoft says | Where to look |
|---|---|---|
| The sensor's own event log | Events in the SENSE Operational log, filtered to Critical, Warning and Error, each have a resolution step | Applications and Services Logs > Microsoft > Windows > SENSE > Operational |
| Windows diagnostic data service | "you might need to check that the Windows diagnostic data service is set to automatically start and is running on the device" | The DiagTrack service |
| The sensor's internet path | The sensor "requires Microsoft Windows HTTP (WinHTTP) to report sensor data", and WinHTTP "is independent of the Internet browsing proxy settings" | The WinHTTP proxy and the proxy's allowed URLs |
| Antivirus policy and drivers | Onboarding completes, but "you see error 577 or error 1058 when trying to start the service" when the Early Launch Antimalware (ELAM) driver is turned off by policy | The Windows Defender policy values and the service start types |
| A missing Windows feature | In the onboarding script's own events, "The SENSE Feature on Demand (FoD) may not be installed" | The result of a DISM capability query |
On Windows 10 build 1809 and later the first diagnostic data check is weaker than it looks. Microsoft's note says the Defender for Endpoint EDR service "no longer has a direct dependency on the DiagTrack service" and that uploads of the sensor's data can still happen when that service is not running. The page says nothing further about the device list or about earlier builds, so any link between a stopped diagnostic data service and a missing device is not something Microsoft's page states.
Prove the cause before changing anything
Everything in this section reads only.
-
Read the SENSE Operational log. Click Start, type Event Viewer and press Enter. In the Event Viewer (Local) pane expand Applications and Services Logs > Microsoft > Windows > SENSE and select Operational. In the Action pane click Filter Current Log, set Event level to Critical, Warning and Error and click OK. Microsoft's resolutions for the events that can appear are, in short: events 5 and 15 mean ensure the device has Internet access; event 6 means run the onboarding script again; event 7 means ensure Internet access, then run the entire onboarding process again; events 9, 10 and 17 mean reboot and run the onboarding script again or contact support, depending on the event; events 25 and 27 mean contact support; event 55 means reboot the device; events 63, 68 and 69 concern the start type of a service, with the instruction to identify what is changing it or to start the named service. If none of these events appears, Microsoft says to proceed with the additional-component checks below.
-
Check the services. These two commands only read:
sc qc diagtrack
sc query sense
Microsoft says that if the diagnostic data service is enabled, the START_TYPE should be AUTO_START. For the sensor, Microsoft says to make sure the service is not in an intermediate state such as Pending_Stopped or Pending_Running. Write the results down; the Fix section needs the original start type.
- Check the Windows feature behind the sensor. Microsoft's page gives this read-only query for the onboarding script's event 15, "Failed to start SENSE service", in an Admin command prompt or PowerShell:
DISM.EXE /Online /Get-CapabilityInfo /CapabilityName:Microsoft.Windows.Sense.Client~~~~
Microsoft says that if it returns an error or the state is not "Installed", the SENSE Feature on Demand must be installed.
-
Check the antivirus policy, but only on devices that have not received the August 2020 Microsoft Defender Antivirus update (version 4.18.2007.8). Microsoft says that update ensures Defender Antivirus "cannot be turned off on client devices via system policy". On older devices, open the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender and read it. Microsoft says the DisableAntiSpyware and DisableAntiVirus policies should be cleared, so that there are no entries such as a DWord value of 0 under those names, and that the services wdboot, wdfilter, wdnisdrv, wdnissvc and windefend "should be in their default state".
-
Check the network path. Microsoft's page points to its connectivity verification page and to its proxy page. The Client Analyzer procedure is on the connectivity page, and Microsoft's netsh winhttp page documents
netsh winhttp show proxyas the read-only command that displays the current WinHTTP proxy settings.
Example (illustrative): at contoso.com.au a Windows 10 build 1709 laptop is onboarded by a Group Policy and is missing from the list. The SENSE log has no events at all, and sc qc diagtrack shows a START_TYPE of DISABLED. That matches the check Microsoft gives for devices whose diagnostic data service was disabled by other programs or user configuration changes.
Fix
Pick the fix that matches the proof. Work through them in the order the proof pointed, not all at once.
Set the diagnostic data service to start automatically
Use this when sc qc diagtrack showed a START_TYPE other than AUTO_START, and the device is on a build where the service matters.
Before you change anything, keep the current setting: the output of sc qc diagtrack from the proof step, including its START_TYPE. That is what the back-out restores.
Disruptive step: the next two commands change the start type of the Windows diagnostic data service to automatic and then start it. An automatic start type applies at every restart of the device. Microsoft's pages give no command that stops the service again, so if it was stopped on purpose, the start itself cannot be reversed from them; the start type can.
Open an elevated command prompt (Microsoft's pattern: click Start, type cmd, right-click Command prompt and select Run as administrator) and run:
sc config diagtrack start= auto
Microsoft's Defender page prints this command as start=auto, but the sc config page says: "A space is required between an option and its value (for example, type= own. If the space is omitted, the operation fails." The command above uses the space.
Microsoft says a success message is displayed. Verify with the read-only sc qc diagtrack, then start the service:
sc start diagtrack
To undo it, only if you need to put the start type back: this changes the start type of the Windows diagnostic data service again, to what sc qc diagtrack recorded before the change, using the same command with the earlier value. The names differ between the two commands: sc qc prints a START_TYPE such as AUTO_START, while sc config takes the short value without "_START". Microsoft's sc config page lists the values as boot, system, auto, demand, disabled and delayed-auto, and requires the space after the equals sign, for example sc config diagtrack start= demand.
Antivirus policy and drivers
This is a description of Microsoft's solution, not an instruction. For the symptom "Onboarding successfully completes, but you see error 577 or error 1058 when trying to start the service", Microsoft's Problem and Solution text says that when devices run a third-party antimalware client the sensor needs the ELAM driver enabled and that DisableAntiSpyware and DisableAntiVirus must be cleared from the policy that sets them. After clearing the policy, Microsoft says to run the onboarding steps again. It also warns that changing the startup of the Windows Defender services "is unsupported and may force you to reimage your system". Policy changes belong in your management tool under its normal change process.
Feature on Demand and onboarding again
Microsoft's page points to its page on available Features on Demand for installing the SENSE client, and to its steps for running the onboarding script again with administrator privileges. Both change the device, so use the dedicated pages for the exact steps rather than this summary.
Servers on Windows Server 2016 and earlier
For servers onboarded the older way, Microsoft's page lists checks instead of a fix: that the Microsoft Monitoring Agent (MMA) is installed and configured to report sensor data, that the server's proxy and Internet connectivity settings are configured properly, that a Microsoft Defender for Endpoint service is running on the Processes tab in Task Manager, that Event Viewer > Applications and Services Logs > Operation Manager shows no errors, and that the Microsoft Monitoring Agent is running in Services.
Confirm the fix
- The SENSE Operational log no longer shows the filtered Critical, Warning or Error events you wrote down.
sc qc diagtrackshows AUTO_START if you changed it, andsc query senseshows a running state, not an intermediate one.- The device appears in the Devices list. Allow the several hours Microsoft's event page mentions after event 11 before concluding that it has not.
What to watch afterwards
- Software or user changes that disable the diagnostic data service again; Microsoft says it "might have been disabled by other programs or user configuration changes".
- Devices that do not yet have the August 2020 Defender Antivirus update, which can still have antivirus policy values that conflict.
- Newly built devices. Microsoft describes a case where the onboarding package is deployed but first start has not completed, so the service does not start; on Windows 10 version 1809 or later and Windows Server 2019 or later, a logon after first start is no longer required.
- Proxy or firewall changes, which bring back events 5 and 15.
Read next
Related articles you may want next.
- TroubleshootingGroup Policy Not Applying: gpresult, Events and SYSVOLA Group Policy setting missing on a hosted server: read gpresult as the affected user, check loopback, filter one run's events, then check SYSVOL state.Read article
- HostingValidating firewall changes for hosted application dependenciesHow to baseline required ports for hosted applications and verify connectivity after routine firewall rule changes—not post-incident policy restore.Read article
- Troubleshooting"Windows failed to apply the MDM Policy settings" after gpupdate /force on an Intune-enrolled hybrid devicegpupdate /force warns Windows failed to apply the MDM Policy settings on an Intune device? Microsoft calls it expected when enrolled. How to prove it.Read article
Risks and limits
These steps have not been run or lab-tested.
Microsoft's page names Windows Server 2012 R2 and later as supported operating systems and gives separate guidance for Windows Server 2016 and earlier. The sc config page and the netsh pages are general command references and do not mention Defender; the commands are used here only because the Defender page prints them. Microsoft's pages do not give a command to stop a service started by sc start, so a started service cannot be returned to its stopped state from the cited pages. The wording of events differs slightly between Microsoft's event reference and its onboarding page, as Microsoft's two pages print them.
Sources
- Troubleshoot Microsoft Defender for Endpoint onboarding issues — Microsoft Learn, page dated 2026-03-05, accessed 3 December 2026
- Review events and errors using Event Viewer — Microsoft Learn, page dated 2026-07-02, accessed 3 December 2026
- netsh winhttp — Microsoft Learn, page dated 2025-08-20, accessed 3 December 2026
- sc.exe config — Microsoft Learn, page dated 2023-02-03, accessed 3 December 2026
This article was originally published on .