<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>安全 on LeafCxy's Blog</title><link>https://leafcxy.github.io/tags/%E5%AE%89%E5%85%A8/</link><description>Recent content in 安全 on LeafCxy's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Mon, 31 Aug 2026 11:10:43 +0800</lastBuildDate><atom:link href="https://leafcxy.github.io/tags/%E5%AE%89%E5%85%A8/index.xml" rel="self" type="application/rss+xml"/><item><title>PowerShell 提示“在此系统上禁止运行脚本”的解决方法</title><link>https://leafcxy.github.io/posts/2026/08/powershell-script-execution-disabled/</link><pubDate>Mon, 31 Aug 2026 11:10:43 +0800</pubDate><guid>https://leafcxy.github.io/posts/2026/08/powershell-script-execution-disabled/</guid><description>&lt;p&gt;在 Windows 终端中尝试执行 PowerShell 脚本（&lt;code&gt;.ps1&lt;/code&gt; 文件）或者运行某些依赖脚本的工具（如 &lt;code&gt;npm&lt;/code&gt;、&lt;code&gt;yarn&lt;/code&gt;、&lt;code&gt;nvm&lt;/code&gt;、&lt;code&gt;venv/activate&lt;/code&gt; 等）时，经常会遇到脚本被阻止运行的错误。本文将详细分析该问题的原因、提供多种解决方案以及深入讲解 PowerShell 的执行策略机制。&lt;/p&gt;
&lt;!-- more --&gt;
&lt;h2 id="问题现象"&gt;问题现象&lt;/h2&gt;
&lt;p&gt;在 PowerShell 中直接运行脚本时，可能会收到如下报错信息：&lt;/p&gt;</description></item></channel></rss>