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.

Ethan_and_Mia_4-1712767828079.png

 

How to setting condition to stop if device onboarded already ?

 

these are current task setting to run script.

Ethan_and_Mia_0-1712767654158.pngEthan_and_Mia_1-1712767686414.pngEthan_and_Mia_2-1712767703420.png

Ethan_and_Mia_3-1712767719927.png

 

 

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.