<?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>Windows PowerShell, Invalid Certificates, and Automated Downloading</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/25/windows-powershell-invalid-certificates-and-automated-downloading.aspx</link><description>Summary : If a trusted website has an expired or self-signed certificate, you must ignore the error to use Windows PowerShell with the website. 
 
 Microsoft Scripting Guy Ed Wilson here. Years ago I used to teach MCSE training classes and one of my</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Windows PowerShell, Invalid Certificates, and Automated Downloading</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/25/windows-powershell-invalid-certificates-and-automated-downloading.aspx#3353572</link><pubDate>Fri, 03 Sep 2010 15:55:25 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3353572</guid><dc:creator>ScriptingGuy1</dc:creator><description>&lt;p&gt;@Scott Thanks :-)&lt;/p&gt;
&lt;p&gt;@Doug You are correct that if you remove the Function part, and simply use the code from the function directly, it will work the same. It is not a 1.0 or a 2.0 thing. In PowerShell 2.0 additional features were added to functions to make them work more like cmdlets. In PowerShell 1.0 functions were like VBScript Subroutines and Functions. The advantage of a function is that it can encapsulate logic and make the script easier to read. It can also allow for easy code reuse. If a function is stored in a file it can be dotsourced into script, and you do not need to copy the code into the script. But if you have additional code, it will execute. I have several articles on functions. Use the getting started / functions tags.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3353572" width="1" height="1"&gt;</description></item><item><title>re: Windows PowerShell, Invalid Certificates, and Automated Downloading</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/25/windows-powershell-invalid-certificates-and-automated-downloading.aspx#3347327</link><pubDate>Wed, 28 Jul 2010 18:42:51 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3347327</guid><dc:creator>Doug</dc:creator><description>&lt;p&gt;I&amp;#39;m not understanding the advantage of the function inside the script... You say &amp;quot;The advantage of this is that it allows you to run the script without needing to dot-source a function into your Windows PowerShell console, or copy a function into your profile.&amp;quot; If I just put the contents of the function in a script, it works just fine in PowerShell 2.0 - is this a 1.0 thing I&amp;#39;m missing?&lt;/p&gt;
&lt;p&gt;Thanks in advance for the clarification.&lt;/p&gt;
&lt;p&gt;-Doug&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3347327" width="1" height="1"&gt;</description></item><item><title>re: Windows PowerShell, Invalid Certificates, and Automated Downloading</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/25/windows-powershell-invalid-certificates-and-automated-downloading.aspx#3347091</link><pubDate>Tue, 27 Jul 2010 16:31:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3347091</guid><dc:creator>Scott Muc</dc:creator><description>&lt;p&gt;Thanks you for this article! We&amp;#39;ve been struggling with this problem and we&amp;#39;re using this function to replace a very convoluted script we&amp;#39;ve made. I really like the simplicity of this implementation. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3347091" width="1" height="1"&gt;</description></item></channel></rss>