Unable to re-enroll Windows device after manual MDM profile removalSolved

Participant
Discussion
1 day ago May 12, 2026

Hey everyone, I’m in sort of a trouble. I accidentally removed the MDM profile manually from a Windows laptop. Now, I cannot get the device to re-enroll. I even disenrolled it from the Hexnode portal to try a fresh start, but the enrollment just won’t trigger. The laptop seems stuck. Any ideas?

Replies (4)

Marked SolutionPending Review
Participant
1 day ago May 12, 2026
Marked SolutionPending Review

Have you tried just restarting the Hexnode service? Usually, if the agent is still there, a restart of the service or just running the old installer again should pick up the connection.

Marked SolutionPending Review
Hexnode Expert
1 day ago May 12, 2026
Marked SolutionPending Review

Hello @merlynn ,

When an MDM profile is removed manually, residual enrollment data often remains in the system registry or under the device’s work accounts. These remnants prevent the OS from initiating a new management session, as it still recognizes a stale enrollment identity. To resolve this, the device must be cleared of all previous management traces before re-attempting enrollment.

Please follow these steps to clear the device:

1. Disconnect the Work Account:

  • Navigate to Settings > Accounts > Access work or school.
  • Check if an account associated with Hexnode is listed. If so, select it and click Disconnect.

2. Clean the Registry Editor:

If the account is not listed but enrollment still fails, you must manually remove the registry keys associated with the previous enrollment:

  • Open Registry Editor (regedit) as an administrator.
  • Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Provisioning\OMADM\Accounts
  • Delete any sub-folders found under the Accounts folder.
  • Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments
  • Delete all sub-folders except for the two default system folders (the system will naturally prevent the deletion of these).

Regards,
Simon Scott
Hexnode UEM

Marked SolutionPending Review
Participant
10 hours ago May 13, 2026
Marked SolutionPending Review

I cleared the registry and the work account was already gone. I still have the original installer on my desktop from last month, shall I run that now?

Marked SolutionPending Review
Hexnode Expert
7 hours ago May 13, 2026
Marked SolutionPending Review

It is recommended to avoid using the previous installer. Outdated installation files can contain configurations that conflict with the current portal state, leading to further enrollment failures.

To ensure a successful re-enrollment:

  1. Open your browser and navigate to your Hexnode enrollment URL (e.g., yourportalname.hexnodemdm.com/enroll/).
  2. Download the latest .exe installer.
  3. Run the new file to complete the enrollment process.

This will establish a fresh communication link between the device and your Hexnode portal.

Save