跳到主要内容

因为在此系统上禁止运行脚本

  1. 首先,使用“以管理员身份运行”打开 PowerShell

  2. 然后,在 PowerShell 中运行此命令 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

  3. 之后,键入 Y 并按 Enter 键。(这步不一定需要)

https://learn.microsoft.com/en-us/answers/questions/1508899/question-1508899