# Move Agent from Customer A to Customer B | ManageEngine Endpoint Central MSP ## How to move Endpoint Central MSP agent from Customer A to Customer B? The below-given steps will help you migrate the agents from one customer to another in Endpoint Central MSP. ## Windows Agent Migration **1. Download the new agent package** - Open the server web console. - Navigate to the Agent -> Computers. - Select the required remote office. - Click the **Download Agent** button. - Rename the file to `LocalOffice_Agent.exe` and place it in a folder. **2. Download the zip** - Extract and copy the contents from [this link](https://www.manageengine.com/products/desktop-central/scripts/reinstaller.zip) to the previously created folder. **3. Generate AgentCleanupToolclient** - Follow the steps in [this doc](https://www.manageengine.com/desktop-management-msp/desktop_agent_uninstallation.html) to create the agent cleanup tool and place the generated `AgentCleanupToolClient.exe` in the same folder. - The folder should contain the below files. ![agentmigration1](https://www.manageengine.com/products/desktop-central/help/images/agentmigration1.png) 4. Open Command Prompt with admin rights and run `ExeCreation.bat` to generate `Agent.exe`. ![agentmigration2](https://www.manageengine.com/products/desktop-central/help/images/agentmigration2.png) 5. Copy the file `Agent.exe` to the client machine and run it in CMD as administrator. 6. Ensure the migration is working seamlessly. 7. In the product console, navigate to **Configuration -> Windows -> Custom Script -> Computer**. 8. Enter the name of the configuration and click **Create/Modify Script**, then add the script to the repository. Click here to [download the script](https://www.manageengine.com/products/desktop-central/scripts/migrateagent.bat). ![agentmigration4](https://www.manageengine.com/products/desktop-central/help/images/agentmigration4.png) 9. Once done, select the script in the custom script configuration. 10. In dependency files, upload the previously generated `Agent.exe` file. Select the target and deploy the configuration. ![agentmigration5](https://www.manageengine.com/products/desktop-central/help/images/agentmigration5.png) 11. Once the changes are applied, the agent will be moved to the new server console. ## Mac Agent Migration - On the Endpoint Central MSP console, navigate to **Agent tab -> Agent Settings -> Agent Protection Settings** and disable **Restrict users from uninstalling the Agent and Distribution server**, if enabled. - Download the **Mac agent** from the Endpoint Central MSP console. - Download **[Migration.sh](https://www.manageengine.com/products/desktop-central/Migration.sh)** to the same directory. ![op-cloud-migration-mac-1](https://www.manageengine.com/products/desktop-central/help/images/mm1.png) - Zip the package with **serverinfo.plist** and **Migration.sh**. ![op-cloud-migration-mac-2](https://www.manageengine.com/products/desktop-central/help/images/mm2.png) - Navigate to **Endpoint Central MSP -> Software Deployment -> Add Package -> Mac**. - Create a Mac package by uploading the **Archive.zip** generated. In Advanced Options, type: ``` sh ./Migration.sh ``` ![op-cloud-migration-mac-3](https://www.manageengine.com/products/desktop-central/help/images/mm3.png) - Create a Mac Software Deployment configuration and deploy the created package to required machines on-premise. It is recommended to apply the configuration to a few test machines first. ## Linux Agent Migration - On the Endpoint Central MSP console, navigate to **Agent tab -> Agent Settings -> Agent Protection Settings** and disable **Restrict users from uninstalling the Agent and Distribution server**, if enabled. - Download the **Linux agent**. - Create a Linux **custom script** configuration. ![op-cloud-migration-linux](https://www.manageengine.com/products/desktop-central/help/images/op-cloud-migration-linux.png) - Add the script **[copyAgentFiles.bash](https://www.manageengine.com/products/desktop-central/scripts/copyAgentFiles.bash)** to the script repository and add the below dependency files: - `DesktopCentral_LinuxAgent.bin/UEMS_LinuxAgent.bin` (in the zip file downloaded from the DC cloud console) - `serverinfo.json` (in the zip file downloaded from the DC cloud console) - [LinuxAgentInstaller.bash](https://www.manageengine.com/products/desktop-central/scripts/LinuxAgentInstaller.bash) **Note:** After the configuration is successfully applied, it will take a maximum of 10 minutes to install the new agent. It is recommended to apply the configuration to a few test machines first. - Define the targets and apply the configuration. This way, all the Endpoint Central MSP agents will be migrated from one customer to another, thereby ensuring a seamless agent installation process.