问题:

powershell中不能执行脚本,提示‘because running scripts is disabled on this system’

原因:

powershell中默认的execution policy 是restricted,使用Get-ExecutionPolicy查看

解决方法:

设置execution policy为remotesigned

Set-ExecutionPolicy RemoteSigned

相关文章:

  • 2022-01-30
  • 2021-05-27
  • 2021-07-21
  • 2021-12-13
  • 2021-04-09
  • 2021-11-12
  • 2021-08-05
猜你喜欢
  • 2021-12-04
  • 2022-03-06
  • 2021-08-09
  • 2022-12-23
  • 2022-03-12
  • 2022-02-16
相关资源
相似解决方案