init-gradle-wrapper.bat will not run on Windows 10

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

init-gradle-wrapper.bat will not run on Windows 10

Georg Potthast 2
I guess after one of the recent Windows updates the file
init-gradle-wrapper.bat will not run anymore.

After downloading apache-ofbiz-17.12.04.zip and unpacking it I have problems
running the init-gradle-wrapper.bat script in an administrator command
window. I get the message like „The file
"C:\ofbiz\gradle\init-gradle-wrapper.ps1" cannot be executed - the file
"C:\ofbiz\gradle\init-gradle-wrapper.ps1" is not digitally signed.

I finally got it to work by changing the executionpolicy in the
init-gradle-wrapper.bat file from „remotesigned“ to „bypass“:
Powershell.exe -executionpolicy bypass -File gradle\init-gradle-wrapper.ps1

Reply | Threaded
Open this post in threaded view
|

Re: init-gradle-wrapper.bat will not run on Windows 10

Jacques Le Roux
Administrator
Thanks Georg,

Fixed, I would not have spotted it, I still use Windows 7 :)

Jacques

Le 26/09/2020 à 06:14, Georg Potthast a écrit :
> I guess after one of the recent Windows updates the file init-gradle-wrapper.bat will not run anymore.
>
> After downloading apache-ofbiz-17.12.04.zip and unpacking it I have problems running the init-gradle-wrapper.bat script in an administrator command
> window. I get the message like „The file "C:\ofbiz\gradle\init-gradle-wrapper.ps1" cannot be executed - the file
> "C:\ofbiz\gradle\init-gradle-wrapper.ps1" is not digitally signed.
>
> I finally got it to work by changing the executionpolicy in the init-gradle-wrapper.bat file from „remotesigned“ to „bypass“:
> Powershell.exe -executionpolicy bypass -File gradle\init-gradle-wrapper.ps1
>