powershell禁止运行脚本

 管理员方式打开power shell

输入:

> Get-ExecutionPolicy
    Restricted

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

 再次尝试打开脚本

5ca463c6-394c-4fc1-a473-2b69273d7c29
posted @ 2022-11-09 09:55  好咯莫讲咯  阅读(110)  评论(0)    收藏  举报  来源