Automating deregistration of Win 10 devices in Intune



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.



Answer ( 1 )


    I don’t have any script. But you can get some samples from

    Also, you need to make sure to delete the hardware hashes of those devices from Autopilot services before selling them off to the vendor.

    Best answer

Leave an answer

Sorry, you do not have permission to answer to this question .