0

我有一个 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.
4

1 回答 1

2

您需要检查并可能调整 x86 和 x64 版本的 PowerShell(如果适用)的当前策略。

用于Get-ExecutionPolicy检查当前策略,并使用 进行相应调整Set-ExecutionPolicy

有关执行策略的描述,请参阅使用 Set-ExecutionPolicy Cmdlet

于 2014-04-05T19:44:56.137 回答