Using with McAfee ePO - aboutsecurity/rastrea2r GitHub Wiki

When using with McAfee ePO use the following script style to ensure it works correctly.

@echo off :: Set path 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 %compsec% "%SRCDIR%\program.exe" /12345

Exit /B 0

To test it as SYSTEM account: Download PSEXEC.exe from systinternals and open a system prompt: psexec.exe /s /i cmd.exe the dos prompt that opens runs as local system (try the whoami command).