# How to create Endpoint Central agent reinstall executable? This guide provides a comprehensive overview of the steps required to create an executable for reinstalling the Endpoint Central agent. It covers the processes for downloading the necessary packages, generating the cleanup tool, and performing reinstallation through Intune. ## Table of Contents 1. [Download the new agent package](#download-new-agent-package) 2. [Download the zip](#download-zip) 3. [Generate AgentCleanupToolclient](#generate-agentcleanup-tool-client) 4. [Reinstallation via Intune](#reinstallation-via-intune) ## Download the new agent package - Open the server web console. - Navigate to **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. ## 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. ### Generate AgentCleanupToolclient - Follow the steps in [this page](https://www.manageengine.com/products/desktop-central/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. ![agent cleanup tool must be gernated and placed in a folder](https://www.manageengine.com/products/desktop-central/help/images/agentmigration1.png) - Open Command Prompt with administrator rights and run `ExeCreation.bat` to generate `Agent.exe`. ![Open command prompt with Admin rights and run ExeCreation.bat and generate Agent.exe](https://www.manageengine.com/products/desktop-central/help/images/agentmigration2.png) - Copy the file `Agent.exe` to the client machine and run it in Command Prompt as administrator. - Ensure the migration is working seamlessly. ## Reinstallation via Intune - First, create the `Agent.exe` by following the steps outlined above. - Next, follow the Intune setup instructions provided in [this document](https://www.manageengine.com/products/desktop-central/intune_service_withouta_storageaccount.html#configure-application) to reinstall the agent via Intune.