uninstall command for EPM agent with self-defense password?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

uninstall command for EPM agent with self-defense password?

L1 Bithead

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 ?

1 accepted solution

Accepted Solutions

L3 Networker

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

 

 

View solution in original post

5 REPLIES 5

L1 Bithead

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

  • msiexec /i “path\CyberArkEPMAgentSetup_<build>(<Set Name>)X64.msi” SECURE_TOKEN=”<secure token>”/qn

Example: msiexec /i “\\publicShare\EPM64bit\CyberArkEPMAgentSetup_6.0.30.97(EPMTest)X64. msi” SECURE_TOKEN="12345"/qn

 

looking for option to uninstall

L3 Networker

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.

L1 Bithead

@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

L3 Networker

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

 

 

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.

  • 1 accepted solution
  • 1700 Views
  • 5 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!