PowerShell执行脚本时“系统上禁止运行脚本”问题解决

PowerShell执行脚本策略错误

  • 错误信息:PowerShell运行脚本错误——“系统上禁止运行脚本”
  • 原因:默认执行策略为Restricted
  • 解决:执行Set-ExecutionPolicy RemoteSigned

解:奇葩史

猜你喜欢

转载自www.cnblogs.com/huaxia283611/p/powershell-execute-script-policy-error.html