<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Use Strict Mode for PowerShell to Help You Write Good Code</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/03/20/use-strict-mode-for-powershell-to-help-you-write-good-code.aspx</link><description>Microsoft Scripting Guy, Ed Wilson, talks about calling a method like a function and using Windows PowerShell strict mode to aid script development.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use Strict Mode for PowerShell to Help You Write Good Code</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/03/20/use-strict-mode-for-powershell-to-help-you-write-good-code.aspx#3487916</link><pubDate>Wed, 21 Mar 2012 14:21:22 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3487916</guid><dc:creator>Ed Wilson</dc:creator><description>&lt;p&gt;@Tony you would need to add Set-Strictmode to each script. It goes away once the script runs (keeping in mind that it affects child scopes so if the script starts other scripts, or opens a powershell console it would be in effect there as well. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3487916" width="1" height="1"&gt;</description></item><item><title>re: Use Strict Mode for PowerShell to Help You Write Good Code</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/03/20/use-strict-mode-for-powershell-to-help-you-write-good-code.aspx#3487902</link><pubDate>Wed, 21 Mar 2012 13:01:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3487902</guid><dc:creator>Tony</dc:creator><description>&lt;p&gt;Do you add set-strictmode to each script? &amp;nbsp;Or is this cmd-let run once like enable-psremoting or set-executionpolicy?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3487902" width="1" height="1"&gt;</description></item></channel></rss>