因为在此系统上禁止运行脚本
-
首先,使用“以管理员身份运行”打开
PowerShell。 -
然后,在
PowerShell中运行此命令Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -
之后,键入
Y并按Enter键。(这步不一定需要)
https://learn.microsoft.com/en-us/answers/questions/1508899/question-1508899
首先,使用“以管理员身份运行”打开 PowerShell。
然后,在 PowerShell 中运行此命令 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
之后,键入 Y 并按 Enter 键。(这步不一定需要)
https://learn.microsoft.com/en-us/answers/questions/1508899/question-1508899