Forum Discussion
jurajmriso
Jul 22, 2024Copper Contributor
Problem with defender onbording using script
Hello,
I try to onboard PC with win 11 to Endpoint and I receive same error as in thread
Bryll advised some steps, but:
"1. Make sure that you are using the correct service name for Microsoft Defender for Business. The service name should be "Microsoft Defender for Endpoint Onboarding" (without the quotes). + 2. Check if the service is running on the device. You can do this by opening the Services app (services.msc) and looking for the "Microsoft Defender for Endpoint Onboarding" service. If the service is not running, start it and try onboarding the device again." - I don't see this service on the machine nor on the machine that is already onboarded.
"Check the Diagnostic Data Service:" - I don't see this service neither (nor on onboarded device). I also tried to enable 'Send optional diagnostic data' and restart PC, but still don't have this service.
Also, solution to create new user account and switch to it is not for us.
I found
https://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-onboarding#view-agent-onboarding-errors-in-the-device-event-log to troubleshoot event log, but the machine doesn't have Applications and Services Logs > Microsoft > Windows > SENSE folder. (onboarded PCs have it)
Any other advise?
- jbmartin6Iron ContributorI got this error because I was not using Win 11 pro or Enterprise versions