Forum Discussion

michael_moshkovich's avatar
michael_moshkovich
Copper Contributor
Mar 31, 2022

Detection script changes run context when adding dependent Application

Hello fellow contributors, 

 

I've recently noticed the following behavior and I hope someone here will help me to understand if this is a bug or a feature 🙂

 

while I deploy an app in System context with PowerShell detection script, everything works as expected.

but the moment I add to said app a dependency of an app what configured to run in User context, the following happens:

  • dependent app deployed as expected in User context
  • targeted app Installs in System Context, as expected
  • targeted app detection script runs in User context

the same happens if I use application group.

 

The scenario, is for deploying Azure VPN Client along with Always on VPN profile (that have to run as System due to current limitations).

Currently I don't have logs on my hands, but if someone seen/heard of this behavior, event if this by design, please share 🙂

 

Thank in advance,

MM

Resources