Reputation: 21
I am trying to run jenv Java Enviroment Handler for windows and the ps1 file used is unsigned. This shouldn't be an issue since i set Process, CurrentUser and LocalMachine to Unrestricted yet the error still appears. I also tried setting these variables to Bypass to cover my bases.
PS > jenv
SecurityError: File D:\sdk\JEnv-for-Windows-main\src\jenv.ps1 cannot be loaded. The file D:\sdk\JEnv-for-Windows-main\src\jenv.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https://go.microsoft.com/fwlink/?LinkID=135170.
PS > Get-ExecutionPolicy -list
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Bypass
CurrentUser Bypass
LocalMachine Bypass
I'm thinking it might be blocked by the other ExecutionPolicy but didn't find much info online regarding those.
Upvotes: 2
Views: 506