Endpoint

Re-enrolling a hybrid joined device in Intune: without resetting the device

Last updated: September 29, 2026


The symptom

One day a hybrid joined (or co-managed) Windows 10/11 device stops talking to Intune. When you try Settings › Accounts › Access work or school › Info › Sync on the device, you get the error “The sync could not be initiated”. In the Intune admin center the device’s last check-in time is stuck days in the past, and in Entra the MDM field is empty.

The causes we see most often in the field:

  • The device was switched off for a long time and the Intune MDM device certificate expired.
  • The Intune certificate was deleted manually from the local machine certificate store.
  • The device remained enrolled in another Intune tenant.

Resetting the device (wipe, Autopilot reset) is always an option, but it comes with user data, installed apps and a lost working day. This article describes how to re-enroll the device in place, without resetting it.

How the method works

There are two layers, and we clean up both:

  1. Leftovers of the Intune enrollment — the scheduled tasks, registry keys and MDM certificate on the device. As long as these stay in place, the broken enrollment does not repair itself.
  2. The Entra hybrid join registration — the device leaves Entra, Entra Connect brings it back, and the device registers again. Automatic MDM enrollment follows this re-join.

Let’s be clear from the start about which parts are the path Microsoft documents and which are a field method:

StepBasis
Renewing the hybrid registration with dsregcmd /debug /leaveLearn — listed in the Entra FAQ as the way to re-register a hybrid joined device
The deleted device coming back through Entra Connect in Pending stateLearn — “as a new object, in Pending state; re-registration is required on the device”
Deleting the Intune certificatePartly Learn — mentioned in Intune enrollment troubleshooting for the old (SC_Online_Issuing) certificate
Deleting the scheduled tasks and registry keysFrom the field — not a procedure documented by Microsoft

That’s why our recommendation is: apply it on a single test device first, then roll it out.

⚠️ Before you start: the device object will be deleted

With this method the device object in Entra really is deleted; the object Entra Connect brings back is a new object. Learn is explicit on two points:

  • BitLocker: Recovery keys are stored on the device object in Entra. When the object is deleted, the keys are deleted too, and there is no way to get them back.
  • Windows LAPS: The local administrator password backed up to Entra also goes with the object. Unless you have backed it up elsewhere, it cannot be recovered.

Whether there is anything to lose depends on the device’s history. If the device has received BitLocker and LAPS policies before, the key and password are on the object in Entra and must be backed up. The device may, however, never have managed to enroll; in that case it never received the policies, so there is neither a key nor a password in Entra and nothing to lose.

Don’t guess, check — open the device in the Entra admin center:

  • If there is a key under BitLocker keys, save it somewhere safe with Show Recovery Key. You can also see it on the device from an elevated command prompt: manage-bde -protectors -get C:
  • If you use LAPS and the device is listed under Entra ID › Devices › Overview › Local administrator password recovery, retrieve its current password.

If both are empty, you can skip this step. After re-enrollment, once the device receives its policies, it backs up its new key and new password to the new object; but if something goes wrong in between, this will be the only copy you have.

Pre-checks

1. Hybrid join status. In the user’s own session, in a command prompt not run as administrator:

dsregcmd /status

Expected values:

FieldExpectedMeaning
AzureAdJoinedYESThe device is joined to Entra
DomainJoinedYESThe device is joined to the domain
AzureAdPrtYESThe signed-in user has a Primary Refresh Token — run the command in the user’s session

2. Domain controller connectivity. The hybrid re-join only completes when the device can reach a domain controller. If the device is not in the office, it must stay connected to the VPN throughout the process.

3. Is automatic MDM enrollment enabled? In Intune, the MDM user scope must cover the user (Some or All; if it is None, automatic enrollment is off) and the user must have an Intune license. Don’t assume this setting is still in place just because it worked before the enrollment broke.

4. Permissions. Local administrator on the device; an account that can open PowerShell as administrator on the Entra Connect server.

5. Backup. We will be deleting from the registry: export the relevant keys (Registry Editor › File › Export) or create a system restore point.

Step 1 — Delete the old scheduled tasks

Automatic MDM enrollment creates scheduled tasks on the device under EnterpriseMgmt. The tasks of the broken enrollment are still there.

  1. Open Task Scheduler as administrator (taskschd.msc).
  2. Go to Task Scheduler Library › Microsoft › Windows › EnterpriseMgmt.
  3. Underneath you will see folders named as GUIDs. The name of the one belonging to the Intune enrollment is the Enrollment ID — note it down, you will need it in Step 2.
  4. Select all tasks inside the folder and delete them.
  5. Once the tasks are deleted, delete the folder itself as well.

From the field: there may be more than one GUID folder under EnterpriseMgmt. You can recognize the Intune one by the tasks inside it: tasks created by the enrollment client, such as PushLaunch, PushRenewal and Schedule #1 / #2 / #3.

Task Scheduler: an enrollment ID folder is selected under EnterpriseMgmt, all tasks on the right are selected, and Delete is marked in the right-click menu.
The enrollment ID folder under EnterpriseMgmt: select the tasks inside it and delete them. IDs are redacted.

If the folder won’t delete, check whether any tasks are left inside it. If it is empty and still won’t delete, it does not block enrollment; move on to the next step.

Step 2 — Clean up the old registry keys

Open Registry Editor as administrator (regedit) and look for the Enrollment ID in the locations below. Wherever you find it, delete only the key named after the Enrollment ID (replace {ID} with your own Enrollment ID):

#Registry path
1HKLM\SOFTWARE\Microsoft\Enrollments\{ID}
2HKLM\SOFTWARE\Microsoft\Enrollments\Status\{ID}
3HKLM\SOFTWARE\Microsoft\EnterpriseResourceManager\Tracked\{ID}
4HKLM\SOFTWARE\Microsoft\PolicyManager\AdmxInstalled\{ID}
5HKLM\SOFTWARE\Microsoft\PolicyManager\Providers\{ID}
6HKLM\SOFTWARE\Microsoft\Provisioning\OMADM\Accounts\{ID}
7HKLM\SOFTWARE\Microsoft\Provisioning\OMADM\Logger\{ID}
8HKLM\SOFTWARE\Microsoft\Provisioning\OMADM\Sessions\{ID}

⛔ Do not delete parent keys (e.g. the entire Enrollments folder) or keys that are not on the list. Some paths may not contain the ID — that’s normal, skip that path.

Step 3 — Delete the Intune MDM certificate

  1. Run certlm.msc as administrator (or Manage computer certificates from Start).
  2. Go to Personal › Certificates.
  3. Find the certificate that shows Microsoft Intune MDM Device CA in the Issued By column and delete it. On older enrollments the issuer may be SC_Online_Issuing. If it has expired, the Expiration Date shows a date in the past.
certlm.msc, Local Computer › Personal › Certificates: the certificate with Microsoft Intune MDM Device CA in the Issued By column is highlighted.
The certificate to delete: issued by Microsoft Intune MDM Device CA. IDs are redacted.

⚠️ The MS-Organization-Access certificate also sits in the same store. It is issued by the Entra device registration service and proves the device’s identity to Entra; do not delete it. You may also see another certificate whose name starts with Intune (e.g. Microsoft Intune Device Management…); leave that one alone too. Only the certificate issued by Microsoft Intune MDM Device CA goes.

Step 4 — Renew the hybrid registration

The device is now clean of Intune leftovers. Next we renew the Entra registration; automatic MDM enrollment will follow it.

1. Remove the device from Entra. On the device, in an elevated command prompt:

dsregcmd /debug /leave
Elevated PowerShell window: output of dsregcmd /leave /debug, followed by dsregcmd /status showing AzureAdJoined NO, EnterpriseJoined NO, DomainJoined YES.
After leaving: the device is out of Entra (AzureAdJoined : NO), domain membership remains (DomainJoined : YES).

2. Confirm it was deleted in Entra. Under Entra admin center › Devices › All devices, verify that the device is gone from the list. Don’t move on to the next step until it has been deleted.

3. Start a delta sync. On the Entra Connect server, open PowerShell as administrator:

Start-ADSyncSyncCycle -PolicyType Delta

When the sync finishes, the device shows up in Entra again. The Registered column says Pending; the MDM and owner fields are empty. This is exactly how Learn describes it: the object came from Entra Connect and is waiting for the device to complete registration.

4. Restart the device. A few minutes after the user signs in with their own account, Pending disappears and the registration date appears in the Registered column. Automatic MDM enrollment follows.

From the field: enrollment doesn’t always complete in the first minute. If the device can’t start automatic enrollment, an Access work or school notification may appear in the notification area; when the user clicks it and signs in with their work account, enrollment completes.

Step 5 — Delete the old Intune record

Re-enrollment creates a new device record in Intune; the old row of the broken enrollment stays in the list. Two records with the same name muddle the inventory and inflate reports — delete the old one.

  1. Search by device name under Intune admin center › Devices › Windows. You will see two rows.
  2. Look at the Last check-in time: the new record shows today, the old record shows the day it broke.
  3. Open the old record › Delete › Yes.

⚠️ Make sure you delete the right row. On Windows devices, Delete in Intune always triggers a Retire command — if you delete the new record by mistake, the enrollment of the device you just repaired is removed again.

No additional cleanup is needed on the Entra side: the old device object was already deleted in Step 4 with dsregcmd /debug /leave.

Verification

  • Certificate: under certlm.msc › Personal › Certificates there is a new Microsoft Intune MDM Device CA certificate issued with today’s date.
  • Scheduled tasks: a new Enrollment ID folder and its tasks have been created under Task Scheduler › Microsoft › Windows › EnterpriseMgmt.
  • Sync: Settings › Accounts › Access work or school › Info › Sync completes without errors, and the “last successful sync” time updates.
  • Portal: the last check-in under Intune admin center › Devices › Windows is current; in Entra the device’s MDM field shows Microsoft Intune.
  • Log (if needed): Event Viewer › Applications and Services Logs › Microsoft › Windows › DeviceManagement-Enterprise-Diagnostics-Provider › Admin — MDM enrollment events and error codes are here.

Common problems

SymptomLikely cause / fix
The Enrollment ID folder won’t deleteThere may be tasks left inside; delete the tasks first. If the folder is empty and still won’t delete, it does not block enrollment.
The device stays Pending for a long timeThe device may be unable to reach a domain controller (VPN). The user signing out and back in triggers the scheduled task that performs the registration.
Registration is complete but no new Intune certificate was createdCheck the hybrid status again with dsregcmd /status; verify that the user is within the MDM user scope and has an Intune license; look up the error code in the Admin log above.
Multiple devices with the same name in EntraLearn warns: leaving and re-joining repeatedly on the same device can create duplicate records. Don’t retry the process over and over; complete one step and verify its result.
Enrollment succeeded but apps are stuck “pending”From the field: trigger a sync several times from the device and the portal, and restart the Intune Management Extension service; if it persists, check the IME logs for the app in question.

In short

  • Backup first: if there is a BitLocker recovery key or LAPS password in Entra, retrieve it — it doesn’t come back once the object is deleted.
  • Pre-checks: dsregcmd /status, DC connectivity, MDM user scope.
  • Cleanup: scheduled tasks → registry (Enrollment ID keys only) → Intune certificate (without touching MS-Organization-Access).
  • Re-join: dsregcmd /debug /leave → confirm deletion in Entra → delta sync → Pending → restart → user sign-in.
  • Inventory: delete the old record in Intune — by looking at the last check-in; on Windows, Delete triggers Retire.
  • Verify: new certificate, new tasks, error-free sync, current check-in.

Sources

All Microsoft Learn pages were retrieved on 2026-09-25.

Thanks to Maxime Rastello for two posts that first compiled the field method:

Related posts