How to identify and remove/delete stale devices in Azure AD and in Intune as can see many devices there?

Vinod Survase 4,781 Reputation points
2023-06-27T13:53:15.33+00:00

How to identify and remove/delete stale devices in Azure AD and in Intune as can see many devices there?

here is our case: We are seeing same device entries in Azure AD and one of the entry is assigned to a user and others does not show user UPN and details.

I can see there is script here but I am more concern on How to identify and remove/delete if I remove will it impact the device which is currently assigned to user and it active with user.

Script here: https://learn.microsoft.com/en-us/answers/questions/973979/how-can-i-delete-or-remote-stale-devices-in-azure

Microsoft Security | Intune | Configuration
Microsoft Security | Intune | Application management
Microsoft Security | Intune | Enrollment
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Intune | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Crystal-MSFT 53,991 Reputation points Microsoft External Staff
    2023-06-28T01:54:55.1166667+00:00

    @Vinod Survase, Thanks for posting in Q&A.

    For the records in Intune, you can use "Device clean up rules" to remove inactive and stale device records. Here is a link with more details:

    https://techcommunity.microsoft.com/t5/device-management-in-microsoft/using-intune-device-cleanup-rules-updated-version/ba-p/3760854

    Hope the above information can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Ahmed Saif Muntaseer 0 Reputation points
    2023-07-03T04:22:03.4866667+00:00

    Hi Vinod,

    As there are several devices are in the list, you can verify though the user. Please go to Azure Active Directory Admin Center-> Users->All Users-> Select the use for whom device was designated-> Then select 'Devices'->

    From this option you can check if device is still showing in the device list and Take action accordingly.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.