Migration Recovery Guide

Recovery procedures for IT administrators when Opsole Migrate fails during Pre-Migrate or Inter-Migrate phases. Use the correct recovery option for the failure phase—do not reimage the device.

Audience: IT Administrator

If your migration has failed, do not reimage or reset the device.

Opsole Migrate includes a built-in recovery mechanism. Most failures — including failures that occur mid-migration after the device has left the domain — are recoverable without reimaging or contacting support. Use the correct recovery option for the phase at which the migration failed.

Recovery applies in two phases:

PhaseWhenRecovery option
Pre-MigrateMigration started but the device has not yet joined Entra IDRe-run the Opsole Migrate application
Inter-MigrateMigration Window Stuck at "Migration in Process" After Pre-Migrate Phase RebootRun patch.exe
Inter-MigrateMigration restarted after Entra ID join was attempted or completedRun patch.exe

For error-specific diagnosis and root-cause fixes, see the Knowledge Base.


Before You Begin

  • Do not reimage or reset the device unless Opsole Support directs you to do so.
  • Identify the failure phase using the portal log module name (see Step 1 below).
  • Resolve the root cause using the linked KB article before retrying recovery.

Step 1 — Identify Your Failure Phase

Open the Opsole Migrate Portal and locate the device log. Find the module name shown in the failure entry. Use the tables below to determine which phase the failure belongs to.


Pre-Migrate Phase — Re-run the Opsole Migrate Application

If the log shows any of the following module names, the failure occurred in the Pre-Migrate phase:

Module name in logWhat it meansKB article
GetconfigapiCould not retrieve migration configurationKB-022201
StoredeviceDetailsCould not store device informationKB-022207
UserProfileCollectionCould not collect user profile informationKB-022208
EntraFetchUserDetailsCould not map user profiles to Entra ID identitiesKB-022209
dsregcmdCould not disconnect device from Entra IDKB-022210
Remove-ComputerCould not remove device from domain (online method)KB-022211
Remove-ComputerForceCould not remove device from domain (offline method)KB-022211
EntrapackageInfoCould not retrieve provisioning package informationKB-022212
EntrapkgdownloadCould not download provisioning packageKB-022212

Recovery steps

  1. Fix the root cause first.

    • Open the KB article linked in the Opsole Admin Portal for the specific error (or use the table above).
    • Resolve the issue before retrying.
    • Re-running the application without fixing the root cause will result in the same failure.
  2. Re-run the Opsole Migrate application.

    • Launch Opsole Migrate on the device.
    • The application performs the required checks again.
    • It continues or restarts the recovery flow based on the current device state.
  3. Monitor the Opsole Admin Portal.

    • Confirm that migration progresses past the stage where it previously failed.

Important notes

  • At this stage, Entra ID join has not yet been attempted.
  • Re-running the Opsole Migrate application is the correct recovery method.
  • If the issue repeats after following the KB article, contact support@opsole.com.

Inter-Migrate Phase — Run patch.exe

Issue 1: Migration Window Stuck at "Migration in Process" After Premigrate Phase Reboot

Launch Opsole Migrate

Root Cause

Intermigrate Phase of the migration did not start because the Task Scheduler failed to launch the InterMigrate activity. This typically occurs when the scheduled task or the executable required for Intermigrate Process is missing or blocked.

Common Causes

  • EDR blocked the creation or execution of the scheduled task
  • EDR deleted the scheduled task after creation
  • EDR quarantined or removed the InterMigrate executable

When Intermigrate Phase does not run, the device remains stuck on the “Migration in Process” screen after reboot. Follow the following Recovery steps

Issue 2: Entrajoin and Profile Failure

If the log shows any of the following module names, the failure occurred in the Inter-Migrate phase:

Module name in logWhat it meansKB article
EntrajoinEntra ID join failedKB-022214
Profile Loading FailedUser profile loading failed after Entra joinKB-022216
Profile Transition FailedUser profile transition failed (contact Opsole Support first)KB-022217

Recovery steps — Run patch.exe

At this stage, Entra ID join has been attempted or completed. The device is in a transition state.

  • Do not reimage the device.
  • Do not re-run the Opsole Migrate application.

patch.exe location:

C:\ProgramData\OpsoleMigrate\runtime\patch.exe

It resumes migration from a saved checkpoint and repairs the steps that failed without restarting the entire process.


Condition 1 — Entra Join Failed (Entrajoin)

The provisioning package was applied but the device did not successfully complete Entra ID join.

Steps:

  1. Fix the root cause using KB-022214.
  2. Remove any existing Entra provisioning package file from the device.
  3. Manually join the device to Entra ID using the correct provisioning package.
  4. Confirm the device is Entra joined (dsregcmd /status).
  5. Run patch.exe from C:\ProgramData\OpsoleMigrate\runtime\
  6. Reboot the device — migration continues automatically.

Condition 2 — Profile Loading Failed

The device has joined Entra ID but the user profile is still loaded or in use. Opsole Migrate blocks migration until all profiles are fully released.

Steps:

  1. Fix the root cause — refer to KB-022216 or the KB article linked in the portal for your error.
  2. Ensure all user profiles are fully unloaded.
  3. Run patch.exe from C:\ProgramData\OpsoleMigrate\runtime\
  4. Reboot the device — migration continues automatically.

Condition 3 — Profile Transition Failed

The device has joined Entra ID and profiles were loaded, but the profile transition from the old domain account to the new Entra ID account failed.

This condition requires Opsole Support to review the device state and provide guided recovery.

Steps:

  1. Contact support@opsole.com with the device name and the full portal log.
  2. Support will diagnose the issue and provide the necessary guidance before you run patch.exe.

When to Contact Opsole Support

Contact support@opsole.com in the following situations:

  • Profile Transition Failed — correction is required before patch.exe can be run
  • patch.exe fails after following the steps above
  • The device is inaccessible or unresponsive after a failure

When contacting support, include:

  • Device name
  • Full portal log for the device
  • The KB article you followed and the steps already attempted

For error-specific troubleshooting, open the KB article linked in the Opsole Admin Portal for your device's failure, or browse the Knowledge Base.

How is this guide?