powershell禁止运行脚本

powershell禁止运行脚本_第1张图片

 管理员方式打开power shell

输入:

> Get-ExecutionPolicy
    Restricted

> Set-ExecutionPolicy -Scope CurrentUser
    位于命令管道位置 1 的 cmdlet Set-ExecutionPolicy
    请为以下参数提供值:
    ExecutionPolicy: 
> remotesigned

 再次尝试打开脚本

你可能感兴趣的:(解决,windows)