Skip to main content

Troubleshooting Windows Enrollment Error: 0x80180026

Updated today

During Windows device enrollment, you may encounter the following error message:

Enrollment completed with status: Error There was an error calling The operation completed successfully. (0x80180026)

This error typically occurs when Windows believes the device is already managed by another MDM or when MDM enrollment has been disabled by policy.


Common Causes

The most common causes of error 0x80180026 include:

  1. The device was previously enrolled in another MDM solution (Intune, SCCM, etc.).

  2. A leftover registry entry indicates the device is externally managed.

  3. MDM enrollment has been disabled via Windows policy.

Each of these scenarios can prevent the Swif agent from successfully enrolling the device.


Troubleshooting

Scenario 1: Previous MDM Enrollment Leftover

If the device was previously enrolled in SCCM, Intune, or another MDM, a registry entry may remain that blocks new enrollment.

Step 1: Open Registry Editor

  1. Press Windows + R

  2. Type:

regedit
  1. Press Enter


Step 2: Navigate to the Enrollment Key

Go to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments

Step 3: Check the ExternallyManaged Value

Look for the registry value:

ExternallyManaged

If it exists and is set to:

1

Windows assumes the device is already managed by another MDM.


Step 4: Fix the Value

Either:

  • Delete the ExternallyManaged value
    or

  • Change its value to:

0

After updating the registry, retry the Swif enrollment.


Scenario 2: MDM Enrollment Disabled

In some enterprise environments, Windows may have a policy that prevents MDM enrollment entirely.

This happens when the following registry value exists:

DisableRegistration

Step 1: Open Registry Editor

Press Windows + R, type:

regedit

Step 2: Navigate to the MDM Policy Key

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\MDM

Step 3: Check the DisableRegistration Value

If the following registry value exists:

DisableRegistration = 1

Windows will block all MDM enrollment attempts.


Step 4: Fix the Policy

Either:

  • Delete the DisableRegistration key
    or

  • Change the value to:

0

After updating the registry, restart the device and retry enrollment.


Retry Enrollment

Once the registry issues are corrected:

  1. Restart the device (recommended).

  2. Run the Swif Windows enrollment installer again.

The device should enroll successfully.


Related Article

For complete enrollment instructions:


When This Issue Usually Appears

This error most commonly occurs when:

  • Migrating devices from Intune

  • Migrating devices from SCCM

  • Devices were previously managed by another MDM

  • A Windows policy blocks MDM enrollment

Did this answer your question?