Automating deregistration of Win 10 devices in Intune
Question
Hello,
We have 100,000 devices registered in Intune for Autopilot (Meaning hardware hash uploaded in Intune). At times, we get request to deregister devices from Intune as they could be end of life/sold back to vendor.
Do we have a PS script that can be used to automate the device removal from Intune as deleting entry one by one from Devices node is not feasible.
Thanks,
Sriram
Answer ( 1 )
I don’t have any script. But you can get some samples from https://github.com/microsoftgraph/powershell-intune-samples
Also, you need to make sure to delete the hardware hashes of those devices from Autopilot services before selling them off to the vendor.