- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-21-2018 06:16 AM
Hello
I'm bit new to EPM; is there a way to invoke command line to uninstall EPM Agent with self-recover password. For example msiexec.exe /x Agent.msi /selfrecoverpass P@ssw0rd ?
11-26-2018 11:20 PM
how about trying the following but you still need to get the uninstall string from the registry
msiexec.exe /X {4FF69173-E360-42AC-A586-B8F633224291} /qn SECURE_TOKEN=4FA67900000000000000000000000000000
For the movement, if user is still using the same endpoint you just need to modify the setid . You may need to change the dispatcherURL if the server is different.
HKEY_LOCAL_MACHINE\SOFTWARE\Viewfinity\Agent\SetID
HKEY_LOCAL_MACHINE\SOFTWARE\Viewfinity\Agent\DispatcherURL
11-23-2018 02:29 AM
Similar options are here: https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/EPM/Latest/en/Content/EPM/Server%20User%20Guide/Appendix%20K%20-%20Silent%20Agent%20Installation%20and%20Upgrade.htm
but these are only for upgrade : Silent Upgrade switch for CyberArk Endpoint Privilege Manager Agent when Agent self-defense is active
Example: msiexec /i “\\publicShare\EPM64bit\CyberArkEPMAgentSetup_6.0.30.97(EPMTest)X64. msi” SECURE_TOKEN="12345"/qn
looking for option to uninstall
11-26-2018 09:50 PM
Hello
To uninstall EPM agent with self-defense turn on, you will need to get the secure token from EPM console.
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 selected Computer to create a secure token for the selected Computers. Copy the secure token to the endpoint.
3.On the endpoint, you can locate the uninstallString parameter from 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, here you will be prompt for the secure token.
11-26-2018 10:35 PM
@Leanne Leong Thank you for your response.
To my understanding there is no parameter to pass secure token string to msiexec for remote quiet uninstall?
Scenario we'd like to cover is: user is moved from one department to another, machine should be moved from one set (with specific policies defined) to another (with other policies). To my knowledge agent holds the set ID (?) and needs to be re-installed - this we'd like to perform with SCCM, hence my question.
Brgds
Pawel
11-26-2018 11:20 PM
how about trying the following but you still need to get the uninstall string from the registry
msiexec.exe /X {4FF69173-E360-42AC-A586-B8F633224291} /qn SECURE_TOKEN=4FA67900000000000000000000000000000
For the movement, if user is still using the same endpoint you just need to modify the setid . You may need to change the dispatcherURL if the server is different.
HKEY_LOCAL_MACHINE\SOFTWARE\Viewfinity\Agent\SetID
HKEY_LOCAL_MACHINE\SOFTWARE\Viewfinity\Agent\DispatcherURL
11-26-2018 11:33 PM
Forget to mention that you need to temporary disable self defense with the following command on elevated CMD
C:\Program Files\CyberArk\Endpoint Privilege Manager\Agent\vf_agent.exe"" -UseToken 74FA67900000000000000000000000000000"
Note that 74FA67900000000000000000000000000000 is generate secure token.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

