I have an issue with the Client-Task "SC: Run Commands".
Windows 2012 R2, ePO 5.3.2, Application Control Extension 22.214.171.124.
Windows 7 x64, Agent 126.96.36.1998, Application Control 188.8.131.523
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?