问题:
powershell中不能执行脚本,提示‘because running scripts is disabled on this system’
原因:
powershell中默认的execution policy 是restricted,使用Get-ExecutionPolicy查看
解决方法:
设置execution policy为remotesigned
Set-ExecutionPolicy RemoteSigned
问题:
powershell中不能执行脚本,提示‘because running scripts is disabled on this system’
原因:
powershell中默认的execution policy 是restricted,使用Get-ExecutionPolicy查看
解决方法:
设置execution policy为remotesigned
Set-ExecutionPolicy RemoteSigned
转载于:https://www.cnblogs.com/coxiseed/p/9579493.html