无法加载文件 ******.ps1,因为在此系统中禁止执行脚本。

发布于 / bug飞 / 0条评论 / Tags: powershell / 4 次浏览

这个是因为powershell默认不允许运行没有签名的脚本。

解决办法

set-executionpolicy -scope CurrentUser Unrestricted

    评论区(暂无评论)