# Software Installation - How To ## How to uninstall Microsoft 365,Office 2019,2021 and 2024? ### Description This document provides you with the steps required to **uninstall Microsoft 365, Office 2019, 2021 and 2024** through Endpoint Central. ### Steps To **uninstall Microsoft 365, Office 2019, 2021 and 2024** follow the steps given below: - [Download the Office Deployment Tool](#download) - [Extract the contents of the Exe](#extract) - [Customize the configuration file for uninstallation](#customize) - [Add the package](#adding) - [Deploy to target computers](#deploy) ### Download the Office Deployment Tool **Download:** Download the Office Deployment Tool from the [Microsoft website](https://www.microsoft.com/en-us/download/details.aspx?id=49117). **Store:** Store in the network share, if you want to uninstall the software from computers within the network. If the requirement is to uninstall the application from computers located in a remote location, use [HTTP upload](https://www.manageengine.com/products/desktop-central/deploy-software-file-upload.html). **Note:** The network share should have read permissions to everyone in the group and should be accessible from all the computers from which the application is to be uninstalled. ![uninstall 1](https://www.manageengine.com/products/desktop-central/images/uninstallmso1.png) ### Extract the contents of the EXE 1. To extract the downloaded package, navigate to the command prompt and run this command: ```bash \ /extract:\Destination Folder /quiet ``` **Note:** Ensure that you enter the correct office deployment executable file name and the file path at the command prompt before extracting the package. You can know the file name by viewing the [details](https://www.microsoft.com/en-us/download/details.aspx?id=49117#:~:text=4/15/2024-,File%20Name%3A,-officedeploymenttool_17531%2D20046.exe), before downloading the package from the website. ![uninstall 2](https://www.manageengine.com/products/desktop-central/images/uninstallmso2.png) ### Customize the Uninstallation 1. **Edit:** Open the Configuration.xml file for the corresponding version from the extracted folder and edit the file as given below: ```xml ``` ![Uninstall Office 365](https://www.manageengine.com/products/desktop-central/images/deployms365_xml.png) - To remove any other Products that are supported by the Office Deployment Tool, refer to the article [here](https://learn.microsoft.com/en-us/microsoft-365/troubleshoot/installation/product-ids-supported-office-deployment-click-to-run) and modify the ProductID as required to remove the particular application. - Setting FORCEAPPSHUTDOWN value as "True" will close all the Microsoft Office applications forcibly before removing the application. This may cause data loss if Microsoft Office applications were running in the background. If this feature is not required, set FORCEAPPSHUTDOWN value to FALSE. This will not remove the application if any of the applications are running on the machine. - **Save:** Save the file after making the customization changes. ### Add the package 1. Click the **Software Deployment** tab. 2. Click **Add Package**. 3. Select the package type as **MSIEXEC/EXE/ISS/Command**. 4. Specify a name for the application. 5. Choose Network Path/HTTP Path based on your requirement. If the deployment method chosen is **Http Path**, zip the files (setup.exe and configuration.xml) in the Office setup folder and add the zip file in the package. Provide the installation commands as mentioned below in the table. 6. Click **Add Package**. ![uninstall 3](https://www.manageengine.com/products/desktop-central/images/uninstallmso3.png) | Content | Share Path / CD | Http | |---|---|---| | **Uninstallation Command** | `"Share Path\setup.exe" /configure "Share Path\configuration.xml"` | `setup.exe /configure ` | | **Example** | `"\\computer_name\DCSWRepository\Office365Extracted\setup.exe" /configure "\\computer_name\DCSWRepository\Office365Extracted\configuration-Office365-x64.xml"` | `setup.exe /configure configuration-Office365-x64.xml` | ![uninstall 4](https://www.manageengine.com/products/desktop-central/images/uninstallmso4.png) ### Deploy to target computers 1. **Select the package** that you added. 2. Click **Uninstall Software**. 3. Enter a **name and description** for the configuration. 4. Under package settings, choose operation type as **Uninstall**. 5. Configure the deployment settings. 6. Choose the target computers. 7. Specify the schedule options, if required. 8. Click **Deploy/Deploy Immediately.**