Thursday, September 3, 2020

".ps1 is not digitally signed. The script will not execute on the system."

I am forced to use M$ Windåse at work, which is not my preferred OS. Most things annoys me about it and I do not understand most things when my Winbox complains. Latest complaint from my Winbox was

.ps1 is not digitally signed. The script will not execute on the system.

trying to install Grunt via Chocolatey. The solution is to bypass the signing requirement

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

<rant>So much for security.... My Winbox is attached to an AD with all the drawbacks and not really any advantages. Admin privileges only via external "security" program, so... we pretend it is safe, but... mostly just a nuisance... god I miss Linux or OSX.... Yes i do use WSL for most work, but dang... it's slow!!!!</rant>

As usual this tip is mostly for my own sanity, so I can find this again the next time Winbox complains. Solution courtesy of Caio Moreno.