A community where customers and the community can provide feedback to make a better product for everyone! For more details on how we prioritize requests, please see:
Enable or disable Patch My PC predefined pre/post install scripts. Currently, Patch My PC predefined scripts are included by default in the Cloud solution, not visible in the UI, and there is no way of opting out of using that predefined script.
Maybe the issue could be solved by simply implementing the solution mentioned here:
Using the -file parameter to run a script, such as powershell.exe -file ./yourscript.ps1, also puts the script in interactive mode and under WDAC restriction. However, if you omit the -file parameter and run a script like this: powershell.exe ./yourscript.ps1, the script runs in non-interactive mode and full-language mode.
Maybe the issue could be solved by simply implementing the solution mentioned here:
https://patchmypc.com/wdac-intune
Currently, the Cloud solution run the pre-install scripts like this: powershell.exe -file ./yourscript.ps1
Please make this happing, we use Constrained Language mode, and can not use your cloud solution until this is fixed