<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Powershell execution policy Archives - the Sysadmin Channel</title>
	<atom:link href="https://thesysadminchannel.com/tag/powershell-execution-policy/feed/" rel="self" type="application/rss+xml" />
	<link>https://thesysadminchannel.com/tag/powershell-execution-policy/</link>
	<description>Documenting My Life as a System Administrator</description>
	<lastBuildDate>Wed, 28 Mar 2018 05:31:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
<site xmlns="com-wordpress:feed-additions:1">144174110</site>	<item>
		<title>Set Execution Policy in Powershell</title>
		<link>https://thesysadminchannel.com/set-execution-policy-in-powershell/</link>
					<comments>https://thesysadminchannel.com/set-execution-policy-in-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Paul Contreras]]></dc:creator>
		<pubDate>Wed, 28 Mar 2018 05:31:01 +0000</pubDate>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[how to use scripts in powershell]]></category>
		<category><![CDATA[Powershell execution policy]]></category>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=224</guid>

					<description><![CDATA[<p>Powershell doesn&#8217;t allow scripts to be ran by default so the policy must be changed if you were to use any script. If you want to Set Execution Policy in Powershell or just simply check what it is, open up Powershell&#8230; <a href="https://thesysadminchannel.com/set-execution-policy-in-powershell/" class="more-link">Continue Reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://thesysadminchannel.com/set-execution-policy-in-powershell/">Set Execution Policy in Powershell</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Powershell doesn&#8217;t allow scripts to be ran by default so the policy must be changed if you were to use any script. If you want to Set Execution Policy in Powershell or just simply check what it is, open up Powershell and run the following command:</p>
<pre>PS C:\&gt; Get-ExecutionPolicy
Restricted</pre>
<p>If you&#8217;ve never set your execution policy this is what you will be seeing.  Now in order to change this to allow scripts you create locally, we&#8217;ll need to set it to RemoteSigned (or AllSigned, if you only want to run Signed Scripts). Since we don&#8217;t have any SSL Certificates on hand, I&#8217;m going to set my execution policy to remote signed.</p>
<h1>Set Execution Policy in Powershell</h1>
<p>To do this run Powershell as administrator and type in the following command:</p>
<pre>PS C:\&gt; Set-ExecutionPolicy RemoteSigned</pre>
<div id="attachment_215" style="width: 989px" class="wp-caption aligncenter"><a href="https://thesysadminchannel.com/wp-content/uploads/2018/03/Powershell-Execution-Policy.png" target="_blank" rel="noopener"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-215" class="wp-image-215 size-full" src="https://thesysadminchannel.com/wp-content/uploads/2018/03/Powershell-Execution-Policy.png" alt="Powershell Execution Policy" width="979" height="452" srcset="https://thesysadminchannel.com/wp-content/uploads/2018/03/Powershell-Execution-Policy.png 979w, https://thesysadminchannel.com/wp-content/uploads/2018/03/Powershell-Execution-Policy-768x355.png 768w" sizes="(max-width: 979px) 100vw, 979px" /></a><p id="caption-attachment-215" class="wp-caption-text">Note: You only have to set the execution policy once if you select Yes to All.</p></div>
<p>Press A to apply it to all.  If you want to learn a little more about execution policy.  Feel free to check out the <a href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-6&amp;viewFallbackFrom=powershell-Microsoft.PowerShell.Core" target="_blank" rel="noopener">MS Documentation.</a></p>
<p>That&#8217;s it!!</p>
<p>The post <a href="https://thesysadminchannel.com/set-execution-policy-in-powershell/">Set Execution Policy in Powershell</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thesysadminchannel.com/set-execution-policy-in-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">224</post-id>	</item>
	</channel>
</rss>
