Deploy Windows EPM Agent with Intune
134
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:12 PM
Objective
In order to deploy EPM using MS Intune, please download the Intune deployment tool and make sure you have Administrator access to Intune Admin Center.
The Intune deployment tool can be found here:
https://github.com/microsoft/Microsoft-Win32-Content-Prep-Tool
Environment
24.2 EPM Windows Agent
Procedure
Step 1:
Once you've download the Intune deployment tool, create two folders on your Desktop called "Input_EPM" and "Output_EPM".
Download and Extract the The EPM Package zip file downloaded from the EPM Console into the "Input_EPM" folder:
Step 2:
Create the following three .bat files (cmd file):
- To Install EPM From Intune
File name: Install_EPM.bat
copy the following script into the file:
@ECHO OFF
SET SOURCE=%~dp0
SET SOURCE=%SOURCE:~0,-1%
msiexec.exe /i "vfagentsetupx64.msi" CONFIGURATION="CyberArkEPMAgentSetupWindows.config" INSTALLATIONKEY="<PASTE_INSTALLATION_KEY>" ISDEPLOYMENT="Yes" /l*v "C:\CyberArk_EPM_Install.log" /qn
Note: Please make sure to copy & paste the installation key from the console to the INSTALLATIONKEY parameter.
copy the following script into the file:
@ECHO OFF
SET SOURCE=%~dp0
SET SOURCE=%SOURCE:~0,-1%
msiexec.exe /i "vfagentsetupx64.msi" CONFIGURATION="CyberArkEPMAgentSetupWindows.config" INSTALLATIONKEY="<PASTE_INSTALLATION_KEY>" ISDEPLOYMENT="Yes" /l*v "C:\CyberArk_EPM_Install.log" /qn
Note: Please make sure to copy & paste the installation key from the console to the INSTALLATIONKEY parameter.
- To Remove EPM from Intune
File name: Uninstall_EPM.bat
copy the following script into the file:
@ECHO OFF
SET SOURCE=%~dp0
SET SOURCE=%SOURCE:~0,-1%
MsiExec.exe /x "vfagentsetupx64.msi" SECURE_TOKEN="<PASTE_SECURE_TOKEN>" ISDEPLOYMENT="Yes" /l*v "C:\CyberArk_EPM_UnInstall.log" /qn
Note: Please replace the SECURE_TOKEN parameter with your secure token set that has been generated from "Upgrade or Uninstall Agents" Tab.
copy the following script into the file:
@ECHO OFF
SET SOURCE=%~dp0
SET SOURCE=%SOURCE:~0,-1%
MsiExec.exe /x "vfagentsetupx64.msi" SECURE_TOKEN="<PASTE_SECURE_TOKEN>" ISDEPLOYMENT="Yes" /l*v "C:\CyberArk_EPM_UnInstall.log" /qn
Note: Please replace the SECURE_TOKEN parameter with your secure token set that has been generated from "Upgrade or Uninstall Agents" Tab.
- To Upgrade EPM from Intune
File name: Upgrade_EPM.bat
copy the following script into the file:
@ECHO OFF
SET SOURCE=%~dp0
SET SOURCE=%SOURCE:~0,-1%
MsiExec.exe /i "vfagentsetupx64.msi" SECURE_TOKEN="<PASTE_SECURE_TOKEN>" INSTALLATIONKEY="<PASTE_INSTALLATION_KEY>=" CONFIGURATION="CyberArkEPMAgentSetupWindows.config" ISDEPLOYMENT="Yes" /l*v "C:\CyberArk_EPM_Upgrade.log" /qn
Note: Please replace the SECURE_TOKEN parameter with your secure token set that has been generated from "Upgrade or Uninstall Agents" Tab & Installation key from the Installation process.
Once those files has been created Inside the EPM_Input folder, it should look like this:copy the following script into the file:
@ECHO OFF
SET SOURCE=%~dp0
SET SOURCE=%SOURCE:~0,-1%
MsiExec.exe /i "vfagentsetupx64.msi" SECURE_TOKEN="<PASTE_SECURE_TOKEN>" INSTALLATIONKEY="<PASTE_INSTALLATION_KEY>=" CONFIGURATION="CyberArkEPMAgentSetupWindows.config" ISDEPLOYMENT="Yes" /l*v "C:\CyberArk_EPM_Upgrade.log" /qn
Note: Please replace the SECURE_TOKEN parameter with your secure token set that has been generated from "Upgrade or Uninstall Agents" Tab & Installation key from the Installation process.
Step 3:
Open Powershell as Administrator, run the Intune Tool and follow the next steps:
- Please specify the source folder:
Insert the full path of your Input_EPM folder (example):
C:\Users\<USERNAME>\Desktop\Input_EPM
C:\Users\<USERNAME>\Desktop\Input_EPM
- Please specify the setup file:
Insert the full EPM MSI name + extension (example):
vfagentsetupx64.msi
vfagentsetupx64.msi
- Please specify the output folder:
Insert the full path of your Outout_EPM folder (example):
C:\Users\<USERNAME>\Desktop\Output_EPM
C:\Users\<USERNAME>\Desktop\Output_EPM
- Do you want to specify catalog folder (Y/N)?
ALWAYS -> N
After the completing the steps above, the installation package should have been created inside the Output_EPM folder.
Step 4:
Upload the created Package file to your Intune Admin Center.
Using your browser, go to Intune Admin Center.(https://endpoint.microsoft.com)
Click on:
Apps -> All apps -> Add
In the drop down menu, scroll down and choose "Windows app(Win32)", then click on Select.
Select the file that has been created in the output folder and press “OK” and upload it:
In the Publisher field, Enter "Cyberark".
Click on Next (or edit the required details).
In the Program tab, update the Install and Uninstall commands:
Install command should be aimed to the Bat file you created OR(!), copy the one line in the Install command which is:
msiexec.exe /i "vfagentsetupx64.msi" CONFIGURATION="CyberArkEPMAgentSetupWindows.config" INSTALLATIONKEY="<PASTE_INSTALLATION_KEY>" ISDEPLOYMENT="Yes" /l*v "C:\CyberArk_EPM_Install.log" /qn
Uninstall command should be aimed to the Bat file you created OR(!), copy the one line in the Uninstall command which is:
MsiExec.exe /x "vfagentsetupx64.msi" SECURE_TOKEN="<PASTE_SECURE_TOKEN>" ISDEPLOYMENT="Yes" /l*v "C:\CyberArk_EPM_UnInstall.log" /qn
Click on next.
At the detection rule you can set how the app will be detected to see if it was installed .