windows 2012执行powershell脚本报错

使用powershell运行脚本报错:进行数字签名。无法在当前系统上运行该脚本。有关运行脚本和设置执行策略的详细信息

修复方法:
powershell "Set-ExecutionPolicy -ExecutionPolicy Unrestricted -force |Out-null"

原文地址:https://www.cnblogs.com/python-cat/p/8484744.html