Skip to Main Content
Patch My PC Ideas & Feedback

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:

63 VOTE
Status SUBMITTED
Created by Graeme Lowe
Created on Mar 11, 2024

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

See title

  • Attach files
  • 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