EPM Uninstall Using Remote Powershell

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Endpoint Privilege Manager (EPM) Articles
2 min read
L0 Member
No ratings
Many customers use a remote PowerShell shell to perform actions on endpoints without bothering end users.  Running some EPM commands can be an issue due to the placement of quotation marks.  Here is how to run several commands remotely.

Steps

1) Connect to the computer remotely using PowerShell

2) Optional - run this command to get the status of Agent Self Defense before making changes
get-service vfpd

3) Try to stop Agent Self Defense with the following command.  Replace the token with your actual token.  Note that double quotation marks "" are needed as shown below:

Start-Process cmd -ArgumentList "/C ""C:\Program Files\CyberArk\Endpoint Privilege Manager\agent\vf_agent.exe"" -UseToken 1ABCEXAMPLETOKEN4567891011121314"

4) Optional - run this command to get the status of Agent Self Defense after the stop attempt

get-service vfpd

if it's still running, that means step 3 failed and you can stop here.  Otherwise proceed below:

5) Run another command to uninstall EPM.  In this example I'm using an example of uninstalling using the GUID for version 23.8.0.1415.  You'll need to either replace the GUID with the GUID for your version, or use the msiexec method that involves using the msiexec file instead

Start-Process cmd -ArgumentList "/C MsiExec.exe /x {003B1BE5-373A-49B5-8834-D7B6715EB98B} /qn"

6) You can check the following service to confirm if EPM was removed. 
get-service vfdrv
Rate this article:
  • 1445 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎12-16-2024 10:47 AM
Updated by: