Skip to Main Content
Patch My PC Feature and Application Request

A community where customers and the community can provide feedback to make a better product for everyone! For more details on how we prioritize request, please see:

Change the way Script Runner calls pre/post scripts so they are not blocked by WDAC

See title

  • Attach files
      Drop here to upload
    • Jon-Erik Stalsberg
      Reply
      |
      Mar 5, 2025

      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.

      https://patchmypc.com/wdac-intune

      Currently, the Cloud solution run the pre-install scripts like this: powershell.exe -file ./yourscript.ps1

    • Matt McPhee
      Reply
      |
      Jan 28, 2025

      This would be very useful for compliance with certain cybersecurity standards.

    • +40