<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans">
	<id>https://wiki.fangc.top/index.php?action=history&amp;feed=atom&amp;title=Powershell%E6%97%A0%E6%B3%95%E8%BF%90%E8%A1%8C%E8%84%9A%E6%9C%AC</id>
	<title>Powershell无法运行脚本 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.fangc.top/index.php?action=history&amp;feed=atom&amp;title=Powershell%E6%97%A0%E6%B3%95%E8%BF%90%E8%A1%8C%E8%84%9A%E6%9C%AC"/>
	<link rel="alternate" type="text/html" href="https://wiki.fangc.top/index.php?title=Powershell%E6%97%A0%E6%B3%95%E8%BF%90%E8%A1%8C%E8%84%9A%E6%9C%AC&amp;action=history"/>
	<updated>2026-04-21T10:23:04Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.fangc.top/index.php?title=Powershell%E6%97%A0%E6%B3%95%E8%BF%90%E8%A1%8C%E8%84%9A%E6%9C%AC&amp;diff=1811&amp;oldid=prev</id>
		<title>FC：​创建页面，内容为“&lt;syntaxhighlight lang=&quot;powershell&quot;&gt; C:\脚本文件\wiki服务器备份.ps1 : File C:\脚本文件\wiki服务器备份.ps1 cannot be loaded because running scripts is disabled on this system. For more informati  on, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.  At line:1 char:1  + C:\脚本文件\wiki服务器备份.ps1  + ~~~~~~~~~~~~~~~~~~~~~      + CategoryInfo          : SecurityError: (:) [], PSSecurityException   …”</title>
		<link rel="alternate" type="text/html" href="https://wiki.fangc.top/index.php?title=Powershell%E6%97%A0%E6%B3%95%E8%BF%90%E8%A1%8C%E8%84%9A%E6%9C%AC&amp;diff=1811&amp;oldid=prev"/>
		<updated>2024-01-29T12:40:01Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt; C:\脚本文件\wiki服务器备份.ps1 : File C:\脚本文件\wiki服务器备份.ps1 cannot be loaded because running scripts is disabled on this system. For more informati  on, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.  At line:1 char:1  + C:\脚本文件\wiki服务器备份.ps1  + ~~~~~~~~~~~~~~~~~~~~~      + CategoryInfo          : SecurityError: (:) [], PSSecurityException   …”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
C:\脚本文件\wiki服务器备份.ps1 : File C:\脚本文件\wiki服务器备份.ps1 cannot be loaded because running scripts is disabled on this system. For more informati&lt;br /&gt;
&lt;br /&gt;
on, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.&lt;br /&gt;
&lt;br /&gt;
At line:1 char:1&lt;br /&gt;
&lt;br /&gt;
+ C:\脚本文件\wiki服务器备份.ps1&lt;br /&gt;
&lt;br /&gt;
+ ~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
&lt;br /&gt;
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException&lt;br /&gt;
&lt;br /&gt;
    + FullyQualifiedErrorId : UnauthorizedAccess&lt;br /&gt;
&lt;br /&gt;
PS C:\Users\Administrator&amp;gt; get-executionpolicy&lt;br /&gt;
&lt;br /&gt;
Restricted&lt;br /&gt;
&lt;br /&gt;
PS C:\Users\Administrator&amp;gt; set-executionpolicy remotesigned&lt;br /&gt;
&lt;br /&gt;
Execution Policy Change&lt;br /&gt;
&lt;br /&gt;
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in&lt;br /&gt;
&lt;br /&gt;
the about_Execution_Policies help topic at https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?&lt;br /&gt;
&lt;br /&gt;
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is &amp;quot;N&amp;quot;): y&lt;br /&gt;
&lt;br /&gt;
PS C:\Users\Administrator&amp;gt; get-executionpolicy&lt;br /&gt;
&lt;br /&gt;
RemoteSigned&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;解释一下&lt;br /&gt;
&lt;br /&gt;
第一句是运行一个脚本发现无法运行&lt;br /&gt;
&lt;br /&gt;
第二句为查看当前车略&lt;br /&gt;
&lt;br /&gt;
第三句改变当前策略&lt;br /&gt;
&lt;br /&gt;
第四句再次查看&lt;br /&gt;
[[分类:Powershell]]&lt;/div&gt;</summary>
		<author><name>FC</name></author>
	</entry>
</feed>