Having Trouble deleting a device

Jose Martinez 1 Reputation point

A while ago I removed a device from my organization's Azure AD Directory. So the device no longer appears in the Azure list of devices, but the device itself still shows in its Settings that it is connected to the organization. And nobody except for one user can log into it. This is creating a problem, since not even an admin can get it. And the only user can log into the device no longer works for the organization. Can somebody tell me how to completely remove this device?

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,473 questions
Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
413 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SubhashSharma-MSFT 651 Reputation points Microsoft Employee

    Hi @Jose Martinez

    Thank you for reaching out.

    The reported issue is expected when device is deleted from Azure AD. Please review below article for details.
    I disabled or deleted my device in the Azure portal or by using Windows PowerShell. But the local state on the device says it's still registered. What should I do?

    Before attempting to disconnect please ensure you have another local account using which you can login to the device. To manage the local accounts please browse to Run > lusrmgr.msc

    To completely disconnect the device please open command prompt as an administrator and run the below.

    dsregcmd.exe /debug /leave  

    I hope this helps in resolving the issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.