Intune Cleanup Not Evaluated Devices

Another Intune Powershell magic to cleanup devices that have unknown status. Here is the requirement from Intune team for automating the cleanup: If a device fails enrollment, a record is still created.  Resolution would be check for any device with compliance status of “not evaluated” with an enrollment date of greater than 7 days and…

Intune Duplicate Device Cleanup

This is the another task that needs to be automated via Powershell spell. Problem Statement: Every time a device attempts to enroll, it creates a new record, and the old record is simply left.  If a user attempts to enroll again in 15 times, there are many dead records left to cleanup. Resolution: Search for…