How to Upgrade the EPM Windows Agent if the Agent service is down or VF_CIC_PROCESS_TOKEN is seen

How to Upgrade the EPM Windows Agent if the Agent service is down or VF_CIC_PROCESS_TOKEN is seen

237
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:01 PM


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
image.png
  • Select the expiration date, allow enough time to complete the agent upgrades on all computers, and click Generate.

image.png

  • 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.
  • image.png
 
 The agent is RunningThe 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.


INFO: "Use Token" command succeeded.
FindWindow failed. Error Code: 0

This message indicates a successful disabling of the agent self-defense mechanism

ERROR: Parent process Id dismissed.
FindWindow succeeded.

Error: Remote "Use Token" command failed. Error=-12
Attempting local command...

INFO: "Use Token" command succeeded.

Note: Dialog will be visible for 2 seconds and automatically will be closed!

This message indicates a successful disabling of the agent self-defense mechanism

ERROR: Parent process Id dismissed.
FindWindow succeeded.

Error: Remote "Use Token" command failed. Error=-12
Attempting local command...

INFO: "Use Token" command succeeded.

Note: Dialog will be visible for 2 seconds and automatically will be closed!

This message indicates a successful disabling of the agent self-defense mechanism

Invalid Token

ERROR: Parent process Id dismissed.

Error: Remote "Use Token" command failed. Error=-1
Attempting local command...

Error: Local "Use Token" command failed.
FindWindow failed. Error Code: 0"

Please generate a new token for disabling the self-defense mechanism on this agent and re-run the tool.

ERROR: Parent process Id dismissed.
FindWindow succeeded.

Error: Remote "Use Token" command failed. Error=-12
Attempting local command...

Error: Local "Use Token" command failed.

Note: Dialog will be visible for 2 seconds and automatically will be closed

Please generate a new token for disabling the self-defense mechanism on this agent and re-run the tool.

ERROR: Parent process Id dismissed.
FindWindow succeeded.

Error: Remote "Use Token" command failed. Error=-12
Attempting local command...

Error: Local "Use Token" command failed.

Note: Dialog will be visible for 2 seconds and automatically will be closed

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:
  • image


Actions
  • Print
  • Copy Link

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