获取当前策略:Get-ExecutionPolicy

设置当前策略:Set-ExecutionPolicy Unrestricted

Restricted——默认的设置, 不允许任何script运行
AllSigned——只能运行经过数字证书签名的script
RemoteSigned——运行本地的script不需要数字签名,但是运行从网络上下载的script就必须要有数字签名
Unrestricted——允许所有的script运行

相关文章:

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