问题:
powershell中不能执行脚本,提示‘because running scripts is disabled on this system’
原因:
powershell中默认的execution policy 是restricted,使用Get-ExecutionPolicy查看
解决方法:
设置execution policy为remotesigned
Set-ExecutionPolicy RemoteSigned