--- title: "Using Command-Line to uninstall a password-protected xAgent" slug: "using-command-line-to-uninstall-a-password-protected-xagent" updated: 2026-09-08T19:11:41Z published: 2026-09-08T19:11:41Z canonical: "docs.trellix.com/using-command-line-to-uninstall-a-password-protected-xagent" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Using Command-Line to uninstall a password-protected xAgent This section describes how to uninstall password-protection Endpoint Security (HX) xAgent software from your Windows endpoint using the command line. **To uninstall the Windows xAgent using the Command Line:** `msiexec.exe /x <agent software installation msi file>|<product identifier #> UNINSTALL_PASSWORD=<password>` 1. Open a command line prompt on your Windows host. 2. Use the` msiexec /x` command to uninstall the password-protected xAgent software by specifying the name of the agent installation `.msi` executable file on the host endpoint and appending `the /x `command with `UNINSTALL_PASSWORD=<password>`. 3. When prompted to confirm that you want to uninstall the xAgent software, select **Yes**. :