處理 [Solution] Script cannot be loaded because running scripts is disabled on this system

跑window power shell時候
如果你也遇到這樣的事情, 就是"Script cannot be loaded because running scripts is disabled on this system"

找到一個方法:
Run the following statement from a Command prompt (not a PS prompt):
下面方式可成功, 請在cmd (一般command line interface)執行:
c:\windows\syswow64\WindowsPowerShell\v1.0\powershell.exe -command set-executionpolicy unrestricted

發表迴響