Clean up before migration to a new account

When you finish migration to one Sophos Central account, the migration tool tries to clean up old "migration package" files before you begin migration to another account.

If cleanup doesn't happen automatically, you see this message. You must clean up manually.

Screenshot of cleanup message
Note If you distributed the migration package to remote Update Managers, you must clean up manually there as well.

To clean up, do as follows:

  1. Open a command prompt with admin privileges.
  2. Change to the MigrationAgent directory for your computer:
    • 32-bit: C:\Program Files\Sophos\MigrationAgent
    • 64-bit: C:\Program Files (x86)\Sophos\MigrationAgent
  3. Run the following command to try to clean up:

    SophosMigrationAgent.exe -action cleanup -t file

  4. In File Explorer, go to C:\ProgramData\Sophos\MigrationAgent\Logs and open MigrationAgent.log
  5. Look at the bottom of the log to see what happened when you ran the cleanup. You see an entry like this:

    ========== Migration Agent started ==========
    Invoked with: -action cleanup -t file

  6. Check for errors in removing a package from a CIDs directory. Here's an example:
    ERROR Failed to remove C:\ProgramData\Sophos\Update Manager\Update
  7. Go to each CIDs directory and delete the files mentioned in the error message. These files can include any of the following:
    • cmanifest.dat
    • migration.csv
    • SophosInstall.exe
    • RunCloudInstaller.bat
    • sav.cfg
  8. To save your changes, run the Sophos configuration tool ConfigCID.exe on the CIDs mentioned in the error message. For details, see How to use the ConfigCID.exe to implement the XML configuration file changes.