Windows 无法运行 install.ps1:执行策略拦住

irm … | iex 报 not digitally signed / disabled。

30 秒判断

是否 ExecutionPolicy Restricted。

原因

PowerShell 默认拦未签名脚本。

处理

  1. Set-ExecutionPolicy -Scope CurrentUser RemoteSigned。
  2. 重新打开 PowerShell 跑官方安装。
  3. 不要用管理员乱装到 System32。

怎么确认好了

脚本跑完 which/where 能找到命令。

验证日期:2026-09-01。网页 / 官方订阅 / 官方 Key / 中转 / 本地 bot 分开查。改完配置请完全退出再开。

赞 (0) 打赏

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏