How to stop run onboarding scrip using GPO if onboard successfully

Copper Contributor

Hi all, I am newbie for Microsoft Defender EDR... so I just using my active directory to onboarding defender using GPO following Microsoft article. Devices onboarded successfully but


"WindowsDefenderATPOnboardingScript.cmd" that I did "task scheduler" run this script every 5mins.



How to setting condition to stop if device onboarded already ?


these are current task setting to run script.





Thank you too much.

1 Reply
The script will not force onboarding again if the device is already onboarded. You can leave it running and it shouldn’t cause any issues.