Intune remove duplicate devices. Don't call it InTune.
Intune remove duplicate devices. However, many organizations encounter issues where the same physical device appears multiple times across Microsoft Entra ID (formerly Azure AD), Microsoft Intune, and Microsoft Defender for Endpoint. In today’s post, we’ll explore the remote actions available to IT administrators—Wipe Jul 16, 2025 · A stale device is a device registered with Microsoft Entra ID that hasn't accessed any cloud apps for a specific timeframe. When duplicate devices exist, it's difficult for Autopilot to assign the correct profile or manage the device efficiently. You can check the same in the following document: Merge duplicate devices. Dec 17, 2019 · When you swap a device by reimaging or reinstalling, the Hardware ID stays the same. This means that the devices will be wiped and is no longer associated with my company and resources. I have computers showing Intune config issues on my dashboard, but they are all duplicate PC's. A Microsoft Engineer said that files on the PC's that were downloaded from our M365 could be wiped by these two options (Delete/Wipe). As Intune Service Administrators, we often get a lot of inactive and stale Intune records due to the nature of test device enrollments. Jun 30, 2021 · Cleaning Up Duplicated Hybrid Devices objects in Microsoft Intune… I have seen on multiple occasions, many duplicated hybrid devices or hybrid devices sitting in a Registered:Pending state which Nov 13, 2023 · For now interactive login is supported. This policy blocks registry editor access for all users on target devices. Sep 17, 2019 · This script basically will remove all devices which have another object with the same serialNumber and are not the one which connected last to the Intune service. I have device (security) group in Intune\MEM, I'm seeing same machine listed multiple times when I click the group. Apr 22, 2023 · In order to delete devices, we need to assign the appropriate permissions to the System Assigned Managed Identity associated with our Automation Account. Feb 1, 2023 · For your first question, you can try using the device management logs in Intune to identify the actual device and remove duplicates. there are a lot of duplicates. AD Health Check, Send HTML Email, Ping machines, Encrypt Password,Bulk Password,Microsoft Teams,Monitor Certificate expiry, Monitor cert expiry, AD attributes, IP to Hostname, Export AD group, CSV to SQL,Shutdown, Restart, Local Admin, Disk Space, Account expiry,Restore Permissions, Backup permissions, Delete Files Older Than X-Days, export Dec 6, 2022 · In this article, I’ll show you how to configure Intune device cleanup rules that automatically remove inactive or stale devices from Intune records. But for Azure Active Directory, this option is not there. Likewise, I was unabled to use dsregcmd /leave on the Feb 19, 2025 · If the device is Azure AD joined, retrieve the key from Microsoft Account. Feb 11, 2025 · This article describes how to remove duplicate mobile device management objects in Microsoft Entra ID. This can happen for example when switching from AD/SCCM built clients to Intune only clients. Under Intune > Devices, it accurately shows just one device. /IntuneAssistant. Sep 19, 2024 · When working with Microsoft Defender for Endpoint (MDE), it’s important to understand how certain actions can create duplicate device objects, which can clutter device inventory and hinder management efforts. For test purpose, I add several Windows 10 and Windows 11 computers to a Pilot collection. Power BI data becomes inaccurate. Teams, Outlook complete the device registration normally - the existing Azure AD device is updated to Intune MDM managed. . May 27, 2020 · Resolution: S earch for duplicate records by serial number and delete all but most recent. For MDE, I knew there is a data retention time which is 30 days in my case. How can I delete this device from Intune? Greetings Harald Feb 4, 2022 · Hello Expert, After renaming of Hybrid azure ad devices ,Double computer name entries found in AAD console and device is MDM intune managed also, How to remove duplicate entries issue in AAD. At this time, a Feb 11, 2025 · Samsung KNOX Standard: Intune identifies a duplicate email account based on the email address, and overwrites it with the Intune profile. When I registered it using the Authenticator (Settings->Device Registration)… Just manually went through all of our devices and removed the duplicates and kept the hybrid joined record. Please delete all the records of the same device in intune portal and Azure AD portal. I’m hoping to just have the single entry for the Hybrid joined device and Feb 11, 2025 · This article describes how to remove duplicate mobile device management objects in Microsoft Entra ID. I waited for a month and the VMs do disappear from MDE. Jun 27, 2024 · We have some devices we are going to need to remove from Intune and Entra and then re-enroll back in. Not being able Apr 21, 2025 · In Intune, duplicate policies are being displayed for all devices in a specific tenant. Once that happens, the This script helps to find the duplicate entries. Jul 11, 2025 · Duplicate device records occur when a Windows device first joins Entra ID and then Hybrid AD, creating two entries for the same physical machine. Wipe, Delete, Retire, Autopilot Reset or Fresh Start. Both devices have checked in relatively recently, how can I tell which one (if either) are safe to delete? Should I just get rid of the azure device and keep the autopilot device. Script: Cleaning Up Inactive Devices Here’s a PowerShell script to identify devices inactive for 90 days or more and remove them from Intune. This happens when a device is mistakenly registered multiple times, leading to conflicts in device management. Administrator Permissions: Permissions to read and delete devices in Intune. To log out use: . Sometimes it happens that there are several devices with the same serial number in Intune. Cli auth logout Remove duplicate devices from Intune An annoying thing are duplicate devices. The command has a few options to narrow selection, show the Duplicate devices Say you are adding devices to a group in Intune, and there are duplicate devices, what is the best way to know which one is the "good" device? or which one is the live device? Mar 18, 2025 · Hello Becca Hamilton This is a known scenario when devices are reset or re‑enrolled in your environment. Apr 16, 2025 · The Intune remote actions are always a tricky part when managing devices with Intune. One thing that's annoying me, however, is that when I use the Autopilot Reset option on a device, I'm getting the standard "Microsoft Edge" icon, a "Work - Edge" icon, and a "Microsoft Edge - Copy" (not pictured below) icon. The script retrieves all devices from Intune and elaborates all duplicated devices based on the serial number. The query for the membership rule: (device. Oct 27, 2025 · Learn how to sync apps you bought in volume through Apple Business Manager with Microsoft Intune. The same device shows up in Azure AD. One of the most frequent issues that administrators encounter is duplicate device entries in Azure AD or Intune. Apr 24, 2025 · In order to overcome the duplicate devices, you need to merge two different devices. deviceOwnership -eq "Company") I don't actually know if this is a problem or something that I should worry about, but it's kind of irking me. But the group has 7 device members for some reason. I am confused on this, because it’s supposed to append/merge with the existing AAD record based on the hardware hash. You can automatically delete devices with cleanup rules in Intune. You could set up an autopilot profile with the option to convert existing devices. That can be security related by preventing access to resources, that can be cost savings by preventing device licenses from being… This script will remove duplicated devices based on the serial from Intune. And the duplicate which has no (2) ‘join type’ has Intune for MDM and Security Settings Management and is When we offboard, we wipe the computer and hand off to the next user. The company portal app - regardless of if it's the 1st or 10 app launched, seems to generate a duplicate device in Azure AD. At the end a CSV is output, which can be cleaned manually or with another script. This script fetches all Intune Devices and then goes through and, if there are Feb 21, 2023 · For this issue, it seems that you enrolled the device multiple times. Here’s how I built a PowerShell script with GitHub Copilot to automatically clean up my environment, with a solution that works for any OS – though I initially focused on Linux devices. This script helps to find the duplicate entries. I got corresponding device entries in AAD and MEM and was able to manage the VMs like other Intune managed devices. Graph. Oct 27, 2025 · Delete remote action behavior by platform When you use the Delete remote action in Intune, the command that triggers depends on the device platform and, for Android, the enrollment type. Hi, a couple of my devices have duplicate entries in azureAD but not in inTune. May 18, 2022 · Currently duplicate mobile device enrolments occur where either: A user restores their device The owner of a device is changed and the Service Desk re-enrol a device previously held by another user without deleting the first user enrolment. We would like to know how to remove the duplicate devices. Dec 19, 2023 · My thought is to go back under Tenant Administration>Connectors&Tokens>Apple VPP Tokens, click the three dots next to the "invalid" token, and choose "Delete". As you can see, the serial number is exactly the same (I know that’s the device name Trying to get all of our hybrid joined PC's enrolled into Intune but a few devices (~10%) are displaying in Intune as "Co-Managed" with the device's name showing as it's management name. This issue is resulting in devices being marked as "Non-Compliant. Feb 19, 2025 · In this post, I will show you how to duplicate settings catalog policy in Intune. Another idea - as it is not an autopilot device, could we delete it from Intune and Entra and then add it to Intune management again? How do we fix this? Aug 10, 2023 · When you remove a tag from a device, Intune should evaluate this change during its next membership update cycle and remove the device from the dynamic group. Any documents on the device from M365 apps would likely be wiped when it’s retired… Not an acceptable risk to a device that could have been in use for 2years with lots of files on it. Feb 2, 2025 · After investigating, we found that the customer had over 12,000 duplicated devices. The following image shows a hybrid device that I deployed using autopilot. Is this normal? I would like to clear up my tenant of old devices but not sure how to proceed with this situation. Sign in to the Intune admin center > Devices > Configuration. Today I was notified we have some duplicate devices in our Intune environment. I'm already using the steps which is included in link which you have provided, but it deletes systems beyond 90 days. Additionally, you can also use the “Retire” feature in Intune to retire and remove old and inactive devices from your management dashboard. Oct 3, 2023 · Thanks @techadmin8 - so what is the best practice here? Should I be leaving the duplicate entries or do I need to do something with them after I’ve enrolled the PC into Intune? I’m hoping to avoid having several duplicates in the Devices page as it’ll inevitably cause confusion for other IT staff down the road. As it turns out, devices are not always reset correctly before reimaging and this means a few devices turn up multiple times. Excluded devices won’t be visible in any of the vulnerability management pages and reports, and they won’t have updated or relevant information about vulnerabilities. If there is anything update, feel free to let us know. Seems that when I'm importing the device into Intune, it's setting the device as AAD Joined. I hope this information is helpful. Initially, many device serial numbers were added to the “Autopilot (all)” group and joined as Entra-joined devices. But we still some have duplicates in Entra ID where the devices with (1) ‘join type’ hybrid joined have no MDM nor Security Settings Management (this one seems to come from the AD sync). Well, in this case, there’s an issue that might arise: “Duplicate Devices in Intune’s Co-management’. Feb 28, 2022 · Windows 10 devices. Go to the Intune portal Mar 5, 2025 · We have observed a large number of stale and duplicate devices in Entra ID, which have been enrolled via Group Policy Object (GPO) for Entra Hybrid Joined devices. Apr 8, 2019 · I noticed that most of our devices show in Azure AD are Azure AD Registered 2 or 3 times. " Assistance is needed to identify a resolution for this problem. What to select and when? That’s always an interesting question. The devices enrolled during the user's first-time login don't have duplicate entries in AAD/Entra. Don't call it InTune. We want to make sure that our Intune Feb 21, 2023 · See above screenshot. (Duplicate device entry issues in Entra with non-matching Intune records). Our current need is to transition these to Hybrid-joined devices. Intune is a Mobile Device Management service that is part of Microsoft's Enterprise Mobility + Security offering. I'm not sure why this is happening and need it to be resolved such that Azure AD… Dec 23, 2022 · If a single device (one serial number) has three different device names in Intune, how can I delete the two extra device names without deleting the device? The users for the two extra device names were already deleted Intune is a Mobile Device Management service that is part of Microsoft's Enterprise Mobility + Security offering. This PowerShell script helps administrators identify and clean up duplicate devices in Intune managed environments, specifically for platforms like Windows, Android, iOS, and macOS. Discover how to efficiently clean up stale and disabled devices using an optimized script inspired by Niklas Tinner. Learn how to navigate this pitfall with expert tips on managing Entra ID objects to ensure a smooth and streamlined deployment process. This happens when we offboard a user, we wipe his computer and then assign it to another person, so the device name changes but the ID remains the same. The Delete option there is greyed out. This cloud-based service helps manage company and personal devices (mobile devices, laptops, desktops, tablets, and IoT or 'machine' devices) across their deployment, update, and removal lifecycles. While these inactive duplicates will eventually be removed based on clean-up rules, they still pose a problem. Hello everyone I am new to intune than most and have taken over looking after an environment and working through cleaning up azure of devices. That could help remove old (duplicate) entries. Aug 4, 2025 · This week is a relatively short post about the updated device clean-up rules in Microsoft Intune. When I go to devices under enrol Jul 3, 2024 · If you can’t act on a device, for example if it’s offboarded or a duplicate, you can choose to have it excluded from threat and vulnerability management views. Mar 17, 2020 · In the case of the Autopilot device registration, the device must also exist in Intune before you attempt to delete it as the Intune record is used to determine the serial number of the device. Then enroll this device again and check if there are multiple entries of a same device. In this blog post, I will cover both and explain step by step what you need to do to set this up. It ruins reporting and your device view. Was a pain because you can only do 20 or 25 at a time. Because it's a dynamic group, I can't remove Nov 25, 2024 · Hi, I have three questions in mind regarding to BYOD devices using app protection policies in intune. If I delete the old device, will it delete the new device, the intune and device ID's are different If this will affect the new device, how can i remove these old entries without purging an existing user. Oct 7, 2025 · Applies to Windows Remove a registered, Windows device from management when you no longer want or need to: Use your device for work or school. Once that happens, the Feb 21, 2023 · For this issue, it seems that you enrolled the device multiple times. Intune PowerShell Module: Microsoft. Easily remove non-compliant and stale devices while leveraging Microsoft Graph for efficient cloud resource management. How to remove a disabled Microsoft Entra user's device from Intune - Intune Fixes a problem in which a device becomes orphaned/unidentifiable if its owner is removed from Microsoft Entra ID before the device is removed from Microsoft Intune. Stale devices have an impact on your ability to manage and support your devices and users in the tenant because: Duplicate devices can make it difficult for your helpdesk staff to identify which device is currently active. Jul 6, 2023 · I'm enrolling hybrid Azure AD joined device into Intune. From what I have read, this should delete the VPP token and associated "invalid" apps from Intune, and not uninstall any apps from any devices. This command helps you removing duplicate devices based on the Intune last sync date. Filtering them out is not a acceptable solution. Apr 27, 2021 · Sitting with the same issue. Automate stale-device cleanup with Intune’s Delete devices that haven’t checked in rule and review regularly. Although for many management screens (like the device list in Azure AD Apr 25, 2024 · We have devices that are listed twice, or three times, with the same device ID but different names in defender under asset >devices . How do you remove duplicate device that shows up when you call up a user profile to perform an app selective wipe? I performed a app selective wipe… Mar 30, 2023 · Hello, I enrolled my device to Intune using Company Portal. Access work or school email, apps, or other resources. For iOS/iPadOS, macOS, and Windows devices, the Delete action always triggers a Retire command. But in intune, I can only see one of them. We removed the registered devices there. What is the difference between these two devices with the same name? Do I need both devices? Aug 19, 2025 · Duplicate Settings Catalog Policy To show an example/demo of duplicating a Settings catalog policy, I would use an existing device configuration profile called Prevent Registry Editor access for all Users. There is a feature called Device Cleanup Rules. This results in multiple Device Entries in Azure AD and causes issues with Conditional Access as Intune thinks the older version isn’t actually compliant even though Intune just has 1 record. Mar 9, 2025 · My Intune dashboard before implementing the automated cleanup solution Ever found yourself drowning in a sea of inactive devices in Microsoft Intune? I did too. To determine what permissions we need, we can look at the Delete device API docs. What can we do to prevent this and removing duplicates other than logging in to the Azure portal every week and manually deleting extra entries? To clean up the current mess, how can we find all the duplicates and do a bulk deletion? Aug 26, 2022 · Remove duplicate devices in Entra IDFind duplicate device registrations based on DisplayName and remove all but the most recently active device from those duplicates. Oct 19, 2024 · Automate device management in Intune and Entra ID with this PowerShell script. Sep 18, 2023 · I’m trying to find th most efficient procedure/steps on how can remove the duplicate entries in Entra so that I have the computer listed ONCE as Hybrid AADJ AND Intune registered. Mar 7, 2023 · I know that in Intune you have an option to automatically remove idle devices from Intune after a few days. The device shows up in the Intune portal, but it's not Azure AD registered. After I deleted the VMs, I found the device entries are somehow lingering. Does anyone know the Nov 15, 2022 · The question for now is how can I delete the duplicate? Here is a example: The problem is with the device managed by ConfigMgr, when I open this device I see: So, no delete button or AAD device ID, only a Intune device ID. If the user configures that account, it's overwritten again by the Intune profile. Apr 29, 2025 · Managing a clean device inventory is crucial for maintaining security, compliance, and operational efficiency. Oct 7, 2022 · It worked fine. Intune. There can be many reasons why it is important to clean-up devices in Microsoft Intune (and Microsoft Entra). Jun 15, 2022 · How to remove duplicate mobile device management objects in Microsoft Entra ID - Intune Describes how to remove duplicate mobile device management objects in Microsoft Entra ID that are not automatically removed. I'm in the process of working toward deploying Intune and largely have my "Phase 1" settings in place and ready to go. After the enrollment, there's a duplicate device added to Azure AD with a different device ID but the same hostname. After you unregister the device, you lose device access to school or work resources. Then you just have to add a user's device to the group assigned to the profile and add the user to the group that is allowed to enroll devices in intune. I’m encountering an issue with Entra/Intune despite having Global and Intune Admin privileges. You can use this procedure to remove orphaned device objects in Microsoft Entra ID that are not automatically removed by the service after 90 days. This has caused duplicate serial numbers in our environment. Then manage and track these apps on iOS/iPadOS and macOS devices. Since these duplicate assets in Azure are reported as unique and separate instances Nov 22, 2023 · Hi All, I am a beginner in Intune. when I go to delete the device in azure it says I cannot because it is in autopilot. Use Tenant Administration → Audit logs to see who triggered a destructive actions. Jan 18, 2024 · This dual state issue can be caused by old device records existing in Entra, and can be resolved by deleting the device in Intune and deleting all records of the affected devices in Entra, and then re-enrolling the devices. I do understand that they want to keep an audit trail if an attacker gets access to your system, but then make the system more secure and less frustrating. Remove all the AAD-registered devices, when the computer goes to register again (assuming you have auto registration through SCCM or GPO) they should register to the Hybrid device's account. I then also assign that device group to apps like the company portal, office 365. May 4, 2024 · After a sh*tload of testing - it appears that launching the Company Portal app and signing in the 1st time is the culprit. For devices used by a single person, Intune enrollment would happen when the user signed into Windows for the first time (all manual pre-deployment configuration was done with a local admin account). Sep 3, 2022 · Devices that had duplicate entries with Azure AD Registered - MDM Microsoft Intune and another entry Hybrid Join - MDM - blank do not report correctly in Intune. If the device is managed by Intune, go to Microsoft Endpoint Manager → Devices → Select Device → Recovery Keys. for example, one is in azure twice with the same name. Jun 28, 2024 · Many organisations depend on Microsoft Intune to manage the wide range and depth of available devices. Managing Windows devices with Microsoft Intune means having the right tool for every situation. Just starting out testing Autopilot in a lab environment and really confused by these duplicate devices. The MOST recent device will remain. Make sure to read What happens if you remove device from Intune before unenrolling your device. Mar 18, 2023 · Hello everyone, I want to remove some devices from Autopilot state. You control which workloads, if any, and switch the authority from Configuration Manager to Intune. In Azure AD (and by extension in Intune or similar device management solutions), every time a device is reset and then re‑enrolled, a new device object is created—even if it carries the same serial number or name. This issue arises because MDE retains old device entries for 180 days, even when new entries for the same device are created due to changes in… The script retrieves all devices from Intune and elaborates all duplicated devices based on the serial number. If it creates another duplicate AAD-registered, you will need to remove the AAD registered devices AND the duplicate hybrid joined, then force another sync. Learn best practices for identifying, deactivating, and removing unused devices to maintain a streamlined device inventory. However, the presence of duplicate device records might be causing unexpected behavior: Only One Object Being Removed To troubleshoot this issue check: Duplicate Device Records Jun 27, 2025 · A stale device is a device registered with Microsoft Entra ID that hasn't accessed any cloud apps for a specific timeframe. However, it seems these devices cannot be deleted and is still present in Azure, marked as an Autopilot device. Sep 28, 2023 · Hello everyone, I have enabled co-management in my environment. At last, these test computers are enrolled to Intune and shown as Co-managed in Intune Admin… Jul 13, 2025 · In this post, I am going to show you how to delete Windows Autopilot devices from different portals such as Microsoft Intune, Entra ID (Azure AD) and Dec 18, 2024 · Managing devices in a Microsoft Cloud environment can be challenging, especially with Windows Autopilot identities in Intune and Entra ID. I’ve been in the process of adding devices into Autopilot, but noticed a few devices have duplicate records: one autopilot record and the original device record. Jul 31, 2023 · How to remove duplicate mobile device management objects in Microsoft Entra ID - Intune Describes how to remove duplicate mobile device management objects in Microsoft Entra ID that are not automatically removed. Only the newest device (Last Synced) will stay in the environment. Apr 25, 2024 · We have devices that are listed twice, or three times, with the same device ID but different names in defender under asset >devices . Before downloading the script make sure Intune Powershell module is installed. Duplicating an existing policy creates a new policy and retains the same Sep 11, 2024 · Resolved this issue doing the following: Move the PC from the Domain to a Workgroup Delete the PC in ADDS Let our AD>AAD sync happen and that removed the PC from Entra The issue was that I didn't have the PC available in Intune to remove as an Autopilot device, and you can't delete an Autopilot device in Entra (it directs you to Intune). Aug 19, 2024 · Moreover, if you want to delete duplicate devices directly, you can just remove all device records in Intune about it and re-image the device, after that you can enroll it to Intune with a new user. Nov 3, 2024 · AzureAD Module: Installed and updated to the latest version. Table of Contents My Intune Nightmare Jun 16, 2025 · Greetings, I tried searching but unable to find the answer concerning an Entra/Intune issue. Apr 25, 2022 · Learn how to remove duplicate objects from you Configuration Manager environment easily and quicky with a little PowerShell script that you can set up easily Apr 18, 2024 · Discover a hidden challenge that could derail your Windows Autopilot deployments—duplicate device entries. If your devices change names then they could appear multiple times. These redundant entries can lead to synchronization issues, compliance concerns, and… Apr 14, 2025 · Discover how to integrate Hybrid Entra ID with Intune Autopilot for enhanced efficiency in our comprehensive guide. This script fetches all Intune Devices and then goes through and, if there are multiple devices per serial number, stores the device information in an array. Mar 1, 2021 · When a Windows 10 device has the Configuration Manager client and is enrolled to Intune, you will get the benefits of both services. Microsoft Intune This is the easiest way to set up. To merge multiple devices, select two or more authorized devices in the device inventory and then select Merge. Mar 13, 2023 · Have you ever asked yourself why you can find duplicated serial numbers in Intune ( Microsoft Intune Admin Center \ Devices \ Windows )? The behavior it’s that you’ll find multiple entries of the same Serial Number associated with different Device Names where its Azure AD Device ID is “null” The device will show as follows If you check this Device Serial Number under Windows Autopilot Sep 11, 2023 · Sign into the Intune Company Portal website to unregister a personal device from work or school. fqao qjmf 6qgwz jzah3 zwwh gcp3r xmo xhyz 6bi ztj