Disabling Execute-ProcessAsUser

We moved from version 3.8.4 to 3.9.1 and we noticed an issue with running the script from SCCM under system account in our environment. We use process whitelisting through Ivanti Workstation and the ExecuteAsUser process at the end of the script is blocked, as we do not allow the powershell.exe under a normal useraccount.
Is there a way to disable this feature or do we have to revert back to version 3.8.4?

Thank you and thanks again for an amazing tool.


They just made a change regarding Execute-ProcessAsUser as per Issue #741
but you’ll have to DL the 3.9.2 beta to get it: PSAppDeployToolkit/PSAppDeployToolkit: Project Homepage & Forums (github.com)

it MIGHT fix your problem. (No guarantees)