How to uninstall EPM agent

How to uninstall EPM agent

167
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 12:57 PM


Question


Q:
 
How to uninstall EPM Agent

 


Environment


v6.0;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;22.12;23.1 EPM Windows Agent

Answer


A:
 
There are several ways to uninstall EPM agent.
 
1) By EPM UI
This is the proper way, access the EPM UI and under "My computers" select the agent you wish to uninstall and right click, select uninstall. a few moments later the agent will be uninstalled.
 
2) By Command line
If that does not work, we'll need to uninstall by command line:
 
a. Locate the UninstallString parameter in the registry
Open the regedit and go to the following path: 
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall 
The location in the registry contains, all of the Uninstall keys of THE current programs on that machine. 
Need to locate the key which hold the UninstallString  DisplayName parameter as "CyberArk Endpoint Privilege Manager Agent". You can press F3 to find items with the string.
There, find the UninstallString parameter of the CyberArk EPM Agent key.
Clicked on the UninstallString Key and copy the Uninstall string: 
For example: MsiExec.exe /I{4FF69173-E360-42AC-A586-B8F633224291}
b. Run a CMD command to uninstall the agent.
 
 
 
Open the CMD window as an Administrator and use the following command:
for example: MsiExec.exe /x {4FF69173-E360-42AC-A586-B8F633224291} 
The command run and will start to uninstall the EPM Agent


3) By Elevated Token
To generate a token you will need to:
Note: This option is only available when the Agent self-defense password Agent Configuration parameter is valued. For Sets created after CyberArk Endpoint Privilege Manager version 6.0 is installed, the parameter is valued with the Set ID. For Sets that existed before the installation of CyberArk Endpoint Privilege Manager version 6.0, the parameter must be valued in Advanced > Agent Configuration.


1. In the CyberArk Endpoint Privilege Manager Management Console, select My Computers and then select Upgrade or Uninstall Agents.
2. Select Action > Generate Secure Token for all Computers to create a secure token for all the Computers in your Set that have Agents installed.
Or
Select Action > Generate Secure Token for selected Computer to create a secure token for the selected Computers.
The Generate Secure Token window appears.
In order to remove the protection, run "vf_agent.exe -UseToken 37B3AF894778DF4E7FD9A3E67FC7B4C5089B5F8A32007D56E51758B2BA9C23CE" and then proceed with the normal uninstall. 




 
In case the command does not uninstall the agent, please collect the agent logs(right click on the EPM icon and collect info) and open case to RD to provide a token to allow the elevation of the uninstallation. the commands to run will then be:
1. "vf_agent.exe -UseToken XXXXXXXXXXXXXXXXXXXXX
2. MsiExec.exe /X {4FF69173-E360-42AC-A586-B8F633224291} 


Additional Information


Details

Q:

How to uninstall EPM Agent

A:

There are several ways to uninstall EPM agent.

1) By EPM UI
This is the proper way, access the EPM UI and under "My computers" select the agent you wish to uninstall and right click, select uninstall. a few moments later the agent will be uninstalled.

2) By Command line
If that does not work, we'll need to uninstall by command line:

a. Locate the UninstallString parameter in the registry
Open the regedit and go to the following path: 
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall 
The location in the registry contains, all of the Uninstall keys of THE current programs on that machine. 
Need to locate the key which hold the UninstallString  DisplayName parameter as "CyberArk Endpoint Privilege Manager Agent". You can press F3 to find items with the string.
There, find the UninstallString parameter of the CyberArk EPM Agent key.
Clicked on the UninstallString Key and copy the Uninstall string: 
For example: MsiExec.exe /I{4FF69173-E360-42AC-A586-B8F633224291}
b. Run a CMD command to uninstall the agent.
Open the CMD window as an Administrator and use the following command:
for example: MsiExec.exe /x {4FF69173-E360-42AC-A586-B8F633224291} 
The command run and will start to uninstall the EPM Agent


3) By Elevated Token

To generate a token you will need to:

Note: This option is only available when the Agent self-defense password Agent Configuration parameter is valued. For Sets created after CyberArk Endpoint Privilege Manager version 6.0 is installed, the parameter is valued with the Set ID. For Sets that existed before the installation of CyberArk Endpoint Privilege Manager version 6.0, the parameter must be valued in Advanced > Agent Configuration.


1. In the CyberArk Endpoint Privilege Manager Management Console, select My Computers and then select Upgrade or Uninstall Agents.

2. Select Action > Generate Secure Token for all Computers to create a secure token for all the Computers in your Set that have Agents installed.

Or

Select Action > Generate Secure Token for selected Computer to create a secure token for the selected Computers.

The Generate Secure Token window appears.

In order to remove the protection, run "vf_agent.exe -UseToken 37B3AF894778DF4E7FD9A3E67FC7B4C5089B5F8A32007D56E51758B2BA9C23CE" and then proceed with the normal uninstall. 



In case the command does not uninstall the agent, please collect the agent logs(right click on the EPM icon and collect info) and open case to RD to provide a token to allow the elevation of the uninstallation. the commands to run will then be:
1. "vf_agent.exe -UseToken XXXXXXXXXXXXXXXXXXXXX
2. MsiExec.exe /X {4FF69173-E360-42AC-A586-B8F633224291} 




Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001BuICAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail