When running a Powershell.exe command via an Application Launcher element or manually, an error message will display ”Filename.ps1 cannot be loaded because the execution of scripts is disabled on this system”.
The Powershell (.PS1) file will not run because the execution of local scripts is restricted by default.
To test this:
1. Open a command prompt, and run Powershell.exe or a Powershell command line directly.
2. In the Powershell prompt run the command: “Get-ExecutionPolicy”.
If the policy is “Restricted”, this is why the .PS1 files will not run.
To allow the use of .PS1 files:
A Group Policy Templates element can be set.
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center