I have an issue with the Client-Task "SC: Run Commands".
Windows 2012 R2, ePO 5.3.2, Application Control Extension 18.104.22.168.
Windows 7 x64, Agent 22.214.171.1248, Application Control 126.96.36.1993
I want to solidify a directory after activation with a command in the task like this:
sadmin so "%PROGRAMFILES%\Program"
sadmin so "%ProgramW6432%\Program"
The Client Task is being executed without a problem, but the directory is not solidified.
If I run the same command from local CLI, it works without a problem.
However the directory is solidified, when I write the full path:
sadmin so "C:\Program Files\Program"
But this solution is NOT fail safe, because this path differs on systems, where OS language is not English or Windows is not installed into C drive.
So have someone been successful with Environment Variables in this type of Client Task?