解决Powershell中不能运行脚本问题

问题:

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

原因:

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

解决方法:

设置execution policy为remotesigned

Set-ExecutionPolicy RemoteSigned

猜你喜欢

转载自www.cnblogs.com/coxiseed/p/9579493.html