How to Upgrade the EPM Windows Agent if the Agent service is down or VF_CIC_PROCESS_TOKEN is seen
Objective
How to Upgrade the EPM Windows Agent after the Cumulative Update Preview for Windows (KB5023773, KB5025224, KB5023774, KB5025221) is installed and the Agent service is down.
You may also observe a pop-up window with a "Failed to send VF_CIC_PROCESS_TOKEN command" error message.
UPDATE: Powershell file version is available now, able to push via Microsoft Intune.
Environment
23.3 EPM EPM Console;Windows Agent
Procedure
Follow the steps below to upgrade Agents that are not starting due to Windows update:
- Using the CyberArk Endpoint Privilege Manager Console, generate a secure token in the set UI:
- Go to My Computers - > Upgrade or Uninstall Agents
- Click Action - > Generate Secure Token for all computers
- Select the expiration date, allow enough time to complete the agent upgrades on all computers, and click Generate.
- Save the Secure Token in a secure location.
- To upgrade the agent, you need to download the newest version. If you are a self-hosted customer, please proceed to the marketplace to download the new version.
If you are a SAAS customer, please download the agent directly from the console
- Download EPM-AGENT-UPGRADE.zip. attached to this article. Extract the zip file, and please review "EPMs Script Instructions.txt" for the instructions and the syntax required to run the batch file. Once you have reviewed and understand the instructions run the upgrade-agent.bat. If enabled, this batch file will disable the agent's self-defense mechanism. It will then upgrade the agent on the target system. This batch file may be packaged for deployment through 3rd-party deployment tools for rollout at scale.
- You may see a popup saying Failed to send VF_CIC_PROCESS_TOKEN command. The tool will click through the pop-up without any manual intervention. This step is utilized to deactivate the self-defense mechanism only.
| The agent is Running | The agent is Not Running Self-Defense is Active(ON). | The agent is Not Running Self Defense is Active(OFF) | |
| Valid Token |
ERROR: Parent process Id dismissed. This message indicates a successful disabling of the agent self-defense mechanism |
ERROR: Parent process Id dismissed. This message indicates a successful disabling of the agent self-defense mechanism |
ERROR: Parent process Id dismissed. This message indicates a successful disabling of the agent self-defense mechanism |
| Invalid Token |
ERROR: Parent process Id dismissed. |
ERROR: Parent process Id dismissed. Please generate a new token for disabling the self-defense mechanism on this agent and re-run the tool. |
ERROR: Parent process Id dismissed. Please generate a new token for disabling the self-defense mechanism on this agent and re-run the tool. |
At this point, the Agent has been successfully upgraded.
- Download EPM-AGENT-UPGRADE-INTUNE.zip. attached to this article if you prefer to use Powershell script. Extract the zip file, and please review "EPMs Script Instructions.txt" for the instructions and the syntax required to run the Powershell file. Once you have reviewed and understand the instructions run the upgrade-agent.ps1. If enabled, this Powershell file will disable the agent's self-defense mechanism. It will then upgrade the agent on the target system. This Powershell file may be packaged for deployment through 3rd-party deployment tools like Microsoft Intune for rollout at scale.
- You can ignore these errors below since install key and secure token is not recognized by default, the upgrade will still happen and be successful: