报错信息如图:

来到cmd中,进入powershell,然后运行get-executionpolicy命令,发现是禁止的模式

get-executionpolicy
解决方法:可以通过更改模式
我们可以看一下有哪些模式
get-help set-executionpolicy

我们可以通过更改模式来解决,需要使用管理员权限运行cmd,不然就会出现一下报错,这样就更改好了,就可以跑power shell脚本了
set-executionpolicy RemoteSigned



报错信息如图:

来到cmd中,进入powershell,然后运行get-executionpolicy命令,发现是禁止的模式

get-executionpolicy
解决方法:可以通过更改模式
我们可以看一下有哪些模式
get-help set-executionpolicy

我们可以通过更改模式来解决,需要使用管理员权限运行cmd,不然就会出现一下报错,这样就更改好了,就可以跑power shell脚本了
set-executionpolicy RemoteSigned



1334

被折叠的 条评论
为什么被折叠?