夜间模式CodeSnippetStyle:
日间模式CodeSnippetStyle:

0%


Windows Powershell – “Running scripts is disabled on this system”

This error happens due to a security policy that won't let scripts be executed on your system without you having approved of it. You can do so by opening up a PowerShell window with administrative rights (search for PowerShell in the main menu and select Run as administrator from the context menu) and entering:
set-executionpolicy remotesigned

出现这个报错的原因是,windows出于安全策略的考虑,默认情况下是不允许运行脚本的,因此,当你在进行一些关联命令行脚本的操作之前。需要让windows解除相关限制。
你需要以管理员身份运行命令行,输入
set-executionpolicy remotesigned

posted @ 2020-07-18 13:56  暮冬有八  阅读(690)  评论(0编辑  收藏  举报
BACK TO TOP

😀迷海无灯听船行。Github WeChat