DisableSogouNetwork icon indicating copy to clipboard operation
DisableSogouNetwork copied to clipboard

无法运行run.ps1,因为在此系统上禁止运行脚本

Open nefusmzj opened this issue 4 months ago • 2 comments

Windows11系统,以管理员身份启动powershell后,运行run.ps1会有错误提示,

无法运行run.ps1,因为在此系统上禁止运行脚本

解决办法是,放开powershell的安全权限限制,即输入set-ExecutionPolicy RemoteSigned,然后再运行run.ps1即可。

恢复powershell的安全限制的方法是set-ExecutionPolicy Default

nefusmzj avatar Mar 04 '24 05:03 nefusmzj