If a client needs to remove old agents, they do not require the MSI file. The uninstall command can use the product key instead.
The product key can be found in: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Steps
- Look for the key that includes "CyberArk" or "Viewfinity Agent" (the agent must be installed).
- Once you find the key, locate the
UninstallString value. - Copy the value from the registry. In the command line for Agent uninstallation, replace
/I with /x. The /I parameter is used for installation, while the /x parameter is used for uninstallation.

For example:
- Original:
MsiExec.exe /I{6649C273-E7F6-48A4-9002-20C692B36AFB} - Modified:
MsiExec.exe /x{6649C273-E7F6-48A4-9002-20C692B36AFB}
Add /qn for a silent uninstall via SCCM. For example, the final command line will be: MsiExec.exe /x{6649C273-E7F6-48A4-9002-20C692B36AFB} /qn

Follow this link for EPM Agent Product Codes: https://community.cyberark.com/s/article/EPM-Agent-Product-Codes
Command Lines for Requested Versions (for example):
- Version 11.5.6:
MsiExec.exe /x{6E572D78-5295-4CA2-8815-3695DDFF47B3} /qn - Version 11.5.5:
MsiExec.exe /x{F6593DD5-8039-418F-87C6-712375E55364} /qn - Version 11.5.3:
MsiExec.exe /x{6649C273-E7F6-48A4-9002-20C692B36AFB} /qn