When a device is deleted from the account or directory, it must be added or registered again; the deletion itself cannot be reversed from the device. The exact fix depends on whether this is a work/school (Microsoft Entra ID) device or a personal Microsoft account device.
- If this is a work or school device (Microsoft Entra ID / Azure AD)
Deleting or disabling the device in Microsoft Entra ID breaks its ability to access cloud resources, even if the local device still shows as “registered.” To use it again, the device must be re-registered or re-enabled.
• If the device was disabled (not deleted):
- A user with sufficient admin rights must sign in to the Microsoft Entra admin center and re-enable the device.
- If the device is Microsoft Entra hybrid joined and synced from on-premises AD, it will be re-enabled automatically on the next sync if it is enabled in on-premises AD. To keep it disabled, it must be disabled in on-premises AD.
• If the device was deleted: follow the steps that match the device join type.
a) Microsoft Entra hybrid joined Windows 10/11 or Windows Server 2016/2019
- On the affected device, open Command Prompt as administrator.
- Run:
dsregcmd.exe /debug /leave
- Sign out and sign back in. This triggers the scheduled task that registers the device again with Microsoft Entra ID.
b) Microsoft Entra joined Windows 10/11
- Open Command Prompt as administrator.
- Run:
dsregcmd /forcerecovery
- In the dialog that appears, select Sign in and complete the sign-in process.
- Sign out and sign back in to complete the recovery.
c) Microsoft Entra registered Windows 10/11
- Go to Settings > Accounts > Access work or school.
- Select the work or school account and choose Disconnect.
- Select + Connect and sign in again to register the device.
If sign-in to the account is blocked because the device was disabled from the My Account Devices page (for work/school), sign in from another device or browser, go to the My Account portal, open Devices, and verify or disable any unfamiliar devices. If a needed device was disabled by mistake, an administrator must add or register it again as above; disabling cannot be undone by the end user.
- If this is a personal Microsoft account device (account.microsoft.com)
For personal Microsoft accounts, removing a device from the devices list does not delete the Windows installation, but it does remove it from the list used for Store content and device management. To get it back:
• Windows 10/11 PCs
- Sign in to Windows on that PC with the same Microsoft account as before. Windows 10/11 devices are automatically added to the devices list when signing in.
- It can take up to 24 hours for the device to reappear under the devices list.
• Surface devices (manual registration)
- Only Microsoft Surface devices can be manually registered by serial number.
- Go to https://account.microsoft.com/devices and sign in.
- Select Register device.
- Enter the Surface device serial number to add it back.
• Device cannot be added
If the device cannot be added again, typical reasons include:
- The device is already associated with another Microsoft account.
- The PC is managed/owned by an organization, so it cannot be registered to a personal account.
- The device is macOS or mobile (Android/iOS), which cannot be added to the Microsoft account devices list.
- It may take up to 24 hours after registration for the device to show.
If sign-in to the Microsoft account itself is failing (for example, due to MFA or account lockout), that issue must be resolved first via account recovery or support; only then can the device be re-added using the steps above.
References: