[英]Script execution policy
我有PowerShell执行策略问题。 起初我以为这只是因为我试图从GitHub项目运行脚本,但我甚至无法运行自己的脚本。 我过去没有遇到这个问题,我不知道从那时到现在可能发生什么变化。
> script.ps1 cannot be loaded because the exe
cution of scripts is disabled on this system. Please see "get-help about_signing"
for more details.
您需要检查并可能调整PowerShell的x86和x64版本的当前策略(如果适用)。
使用Get-ExecutionPolicy
检查当前策略,并使用Set-ExecutionPolicy
相应调整。
有关执行策略的说明,请参阅使用Set-ExecutionPolicy Cmdlet 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.