Hello @Tom Esler Welcome to the Q&A,
You are not alone in this issue actually, I might say I have seen it a couple of times. This problem arises when the old device record was not properly removed from Azure AD.
Here are some steps you can try to mitigate the issue:
- Check if the device has been deleted in Azure AD using PowerShell command
Get-AzureADDevice -All:$true | Where-Object {$_.DisplayName -eq 'old_device_name'}
. Replaceold_device_name
with the name of the old device. If the device still appears, note the Object ID of the device. - Try to remove the device using the Object ID noted in the previous step, by running
Remove-AzureADDevice -ObjectID <Object ID>
. This command should remove the device from Azure AD. - If the device cannot be removed using the Object ID, try removing it using the device's hardware ID instead. Run
Get-AzureADDeviceRegisteredOwners -ObjectId <Object ID>
to retrieve the hardware ID of the device. Then, runGet-AzureADDevice -All:$true | Where-Object {$_.AlternativeSecurityIds -match '<hardware ID>'}
to retrieve the Object ID of the device. Finally, runRemove-AzureADDevice -ObjectID <Object ID>
to remove the device from Azure AD.
if this helps solve your issue, please let me know. I will be on standby incase you have further questions.