在Powershell中运行脚本出错,提示如下

  • Windows - Cannot be loaded because running scripts is disabled on this system

使用管理员权限启动PowerShell,并解除禁止运行脚本

set-executionpolicy remotesigned