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

问题:

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

原因:

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

解决方法:

设置execution policy为remotesigned

Set-ExecutionPolicy RemoteSigned

posted @ 2018-09-03 17:07  薏米*  阅读(2808)  评论(0编辑  收藏  举报