Forum Discussion
Zero Touch phones randomly wipe themselves
Hello and happy Monday Andrius!
I've heard back from the team - please see below:
Based on the behaviour you described - that devices wipe themselves "within the first few hours" after a successful setup - this is likely not a random error but a specific conflict between the Zero Touch (ZT) provisioning and the InTune enrolment token.
When a device is assigned a profile in the Zero Touch portal but receives a conflicting enrolment token during setup (via DPC extras or manual entry), Android Enterprise security mechanisms can trigger a "protection" wipe to prevent unauthorised takeovers.
If a device is registered in the Zero Touch portal with one configuration but the DPC Extras JSON pushes a different enrolment token (or a token meant for a different management mode), the device may enrol initially but then realise the mismatch.
Check your DPC Extras JSON in the Zero Touch portal. Ensure it is not hardcoding a token that conflicts with the one InTune expects for that specific profile (COPE).
(You may find information regarding the JSON here: https://developers.google.com/android/management/provision-device#zero-touch_enrollment)
If you have linked your Zero Touch account directly inside the InTune Console (Tenant Administration > Connectors and tokens), InTune automatically creates a "Default" configuration that overrides manual configurations in the Google ZT portal. Ensure you aren't effectively assigning two different profiles (one from Intune's auto-link, one you manually built in the ZT portal).
There’s one more possibility: It is possible that the devices are enroling, checking in with InTune, failing a specific compliance check immediately, and triggering a compliance action. Ensure that no action is set to "Wipe" or "Retire" immediately (0 days) for common issues.
It might be interesting to check InTune Audit Logs for one of the devices that wiped. (Does it show a "Wipe" command issued by "System" or "InTune"?)
Hopefully, this helps you resolve your issue 🙂
Please let us know how you get on and if there's anything else you might need a hand with!
And thank you Michel and Moombas for your help - you were both on the right track 🚀
Looking forward to hear from you Andrius
Yeah and also added some small learnings to me as some of these possible behaviors/reasons i haven't had in mind to be honest.
Good to know for future.
Related Content
- 3 years ago
- 2 years ago