I am not sure where I am going wrong here, and McAfee support was unable to provide support for this. So my package created using EEDK and deployed from our EPO server is working... But I never get a response back to the EPO stating that the script executed with a success, however if I change the exit code to say 2 or 3 I get a return failure. Below is what I have configured.
Batch Script:
@echo off :: ################################################ :: Set environment to current product folder pushd "%~dp0" :: Get software package source directory and set as variable SRCDIR SET SRCDIR= for /f "delims=" %%a in ('cd') do @set SRCDIR=%%a mkdir C:\AJBTest reg add "HKLM\SOFTWARE\Wow6432Node\Network Associates\ePolicy Orchestrator\Application Plugins\AJBTEST____1000" /v Installed /t REG_DWORD /d 1 :END goto EOF :: Exit and pass proper exit to agent :: ################################################ :EOF Exit /B 0
EEDK Configuration:
EPO Product Deployment:
As you can see the install is always pending for the machine. From the batch I am simply creating a folder in the root of the C drive and adding a registry value to allow McAfee to detect the installation. The script fully executes and the McAfee Agent Logs show the below information:
2019-05-13 17:52:20 I #4448 ScrptExe Running "C:\ProgramData\McAfee\Agent\\Current\AJBTESTT0019\Install\0000\RUNME.bat" 2019-05-13 17:52:20 I #4448 ScrptExe Running "C:\ProgramData\McAfee\Agent\\Current\AJBTESTT0019\Install\0000\RUNME.bat" 2019-05-13 17:52:20 I #4448 ScrptExe Did not match searched path 2019-05-13 17:52:20 I #4448 ScrptExe Executing "C:\ProgramData\McAfee\Agent\\Current\AJBTESTT0019\Install\0000\RUNME.bat" 2019-05-13 17:52:20 I #4448 ScrptExe Using Aac exclusion path C:\ProgramData\McAfee\Agent\\Current\AJBTESTT0019\Install\0000\RUNME.bat 2019-05-13 17:52:20 I #4448 ScrptExe Executing section: [RebootNeeded] 2019-05-13 17:52:20 I #4448 ScrptExe Executing section: [CheckRebootNeededDuringInstall] 2019-05-13 17:52:20 I #4448 ScrptExe Executing section: [SendSuccessEvent] 2019-05-13 17:52:20 I #4448 ScrptMgr Update succeeded to version 4.0.0.0. 2019-05-13 17:52:20 I #4448 MueEep Invoking events withEventId " 0" Severity " 3" Productid " AJBTESTT0019" Locale " 0000" UpdateType " Install" UpdateError " 0" iUpdateState " 8" New Version " 4.0.0.0" Date Time " " Script Id" 2436" Custom Message " " 2019-05-13 17:52:20 I #4448 MueEep Updating session state to 8 2019-05-13 17:52:20 I #4448 MueEep Updating final session state to 8 2019-05-13 17:52:20 I #4448 ScrptExe Executing section: [DoCleanupOfDownloadedFiles] 2019-05-13 17:52:20 I #4448 ScrptExe Executing section: [InstallProduct] 2019-05-13 17:52:20 I #4448 ScrptMgr Update Finished 2019-05-13 17:52:20 I #4448 MueEep Invoking EndUpdateDialog withTitle " Update Finished" Message " Please check the update log for more details." CountdownMessage " Auto close in" CountdownValue" 10" 2019-05-13 17:52:20 I #4448 ScrptExe Executing section: [ReturnSuccess] 2019-05-13 17:52:20 I #4448 ScrptExe Attempting to run OnExit section on current script 2019-05-13 17:52:20 I #4448 ScrptExe Executing section: [OnExit] 2019-05-13 17:52:20 I #4448 ScrptExe Executing section: [ZeroPostponesDoneCount] 2019-05-13 17:52:20 I #4448 ScrptMain Run script return code: 0 2019-05-13 17:52:20 I #4448 ScrptMain McAfee Update Engine is exiting with return code: 0 2019-05-13 17:52:20 I #4448 MueEep Invoking events withEventId " 0" Severity " 0" Productid " EPOAGENT3000" Locale " 0409" UpdateType " N/A" UpdateError " 0" iUpdateState " 1" New Version " N/A" Date Time " N/A" Script Id" 2436" Custom Message " " 2019-05-13 17:52:20 I #4448 MueEep Updating session state to 1 2019-05-13 17:52:20 I #4448 MueEep Updating final session state to 1 2019-05-13 17:52:20 I #4448 MueEep Invoking EndUpdateDialog withTitle " Update Finished" Message " Please check the update log for more details." CountdownMessage " " CountdownValue" 0" 2019-05-13 17:52:20 I #4448 SessMgr Final session state is 1 2019-05-13 17:52:20 I #4448 mue Updater session state = <1>, Update session result = "SUCCESS". 2019-05-13 17:52:20 I #4448 mue Updater install <1> uninstall <0> update <0> 2019-05-13 17:52:20 I #4448 mue Scheduling the post deployment update if any deployment happens, no of install = 1, no of uninstall = 0. 2019-05-13 17:52:20 I #4448 mue Scheduling the post deployment update task to run after 2. minutes 2019-05-13 17:52:20 I #4448 mue Run post deployment update now. 2019-05-13 17:52:20 I #4448 mue Post deployment ASC will be done after post deployment update.
Full success on the agent and it shows sending a 1 event to ePO server, which I assume is the install success but nothing ever updates on the EPO.
Note:
This is only occurring with packages built within EEDK, any McAfee product deployed in the same method returns successes.
Does anyone have any experience deploying in a similar manner? I need to show evidence for our security that certain scripts have been deployed successfully and this is making it difficult.
Thanks!
[link] [comments]