<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Advanced Functions and Test-LeapYear.ps1</title><link>http://blogs.msdn.com/powershell/archive/2008/12/23/advanced-functions-and-test-leapyear-ps1.aspx</link><description>Welcome to CTP3! There are just an amazing amount of really important features in V2 but the one I want everyone to start using ASAP is Advanced Functions. In CTP2 we called this cmdlets. We dropped that term in favor of taking the idea of a FUNCTION</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Advanced Functions and Test-LeapYear.ps1</title><link>http://blogs.msdn.com/powershell/archive/2008/12/23/advanced-functions-and-test-leapyear-ps1.aspx#9249453</link><pubDate>Tue, 23 Dec 2008 10:09:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9249453</guid><dc:creator>SPowser</dc:creator><description>&lt;p&gt;One of my favorite parts of Cmdlets/Advanced Functions is the ParameterSets. &amp;nbsp;These truly give a customized experience to the end user depending on what parameters they pass. &amp;nbsp;I highly encourage people to explore those options as well.&lt;/p&gt;
&lt;p&gt;-Shane&lt;/p&gt;</description></item><item><title>Ubuntu 9.04 Alpha 2 - ジャウンティ ジャッカロープ</title><link>http://blogs.msdn.com/powershell/archive/2008/12/23/advanced-functions-and-test-leapyear-ps1.aspx#9249993</link><pubDate>Tue, 23 Dec 2008 16:28:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9249993</guid><dc:creator>barlog</dc:creator><description>&lt;p&gt;2008 年もあと少し。 今年も皆さんにはお世話になりました。 私事ですが来る新年も祖母が他界したため年始のご挨拶を控えさせて頂きます。 今後ともよろしくどうぞ...&lt;/p&gt;
</description></item><item><title>re: Advanced Functions and Test-LeapYear.ps1</title><link>http://blogs.msdn.com/powershell/archive/2008/12/23/advanced-functions-and-test-leapyear-ps1.aspx#9250559</link><pubDate>Tue, 23 Dec 2008 21:31:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9250559</guid><dc:creator>Chris Federico</dc:creator><description>&lt;p&gt;Mr. Snover ..&lt;/p&gt;
&lt;p&gt;This is some awesome stuff Sir . Thank you for CTP 3 . Happy Holidays !!&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;</description></item><item><title>re: Advanced Functions and Test-LeapYear.ps1</title><link>http://blogs.msdn.com/powershell/archive/2008/12/23/advanced-functions-and-test-leapyear-ps1.aspx#9251061</link><pubDate>Wed, 24 Dec 2008 01:39:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9251061</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Thanx !&lt;/p&gt;
&lt;p&gt;A Happy Christmas to the Team.&lt;/p&gt;</description></item><item><title>re: Advanced Functions and Test-LeapYear.ps1</title><link>http://blogs.msdn.com/powershell/archive/2008/12/23/advanced-functions-and-test-leapyear-ps1.aspx#9251722</link><pubDate>Wed, 24 Dec 2008 15:02:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9251722</guid><dc:creator>tfl</dc:creator><description>&lt;p&gt;I'm unclear on the use of the &amp;quot;&amp;lt;#&amp;quot; and &amp;quot;#&amp;gt;&amp;quot; lines.&lt;/p&gt;
&lt;p&gt;When I use them in my own scripts, they do work (no help info is produced. Removing them and the get-help returns help info.&lt;/p&gt;
&lt;p&gt;Also - putting in a #Requires -version 2.0 stops help from working.&lt;/p&gt;
&lt;p&gt;Is there some documentation on this feature?&lt;/p&gt;</description></item><item><title>re: Advanced Functions and Test-LeapYear.ps1</title><link>http://blogs.msdn.com/powershell/archive/2008/12/23/advanced-functions-and-test-leapyear-ps1.aspx#9251726</link><pubDate>Wed, 24 Dec 2008 15:12:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9251726</guid><dc:creator>Alexander Riedel</dc:creator><description>&lt;p&gt;Why must the parameter position be specified?&lt;/p&gt;
&lt;p&gt;Isn't the order of parameter definition an indicator for position and sufficient?&lt;/p&gt;
&lt;p&gt;What is the use case for having the position specifier?&lt;/p&gt;</description></item><item><title>re: Advanced Functions and Test-LeapYear.ps1</title><link>http://blogs.msdn.com/powershell/archive/2008/12/23/advanced-functions-and-test-leapyear-ps1.aspx#9251957</link><pubDate>Wed, 24 Dec 2008 20:10:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9251957</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;@Tfl&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;lt;#&amp;quot; and &amp;quot;#&amp;gt;&amp;quot; are block comment characters. &amp;nbsp;Everything between them is a comment.&lt;/p&gt;
&lt;p&gt;Please file a bug on the #Requires breaking help.&lt;/p&gt;
&lt;p&gt;jps&lt;/p&gt;
</description></item><item><title>re: Advanced Functions and Test-LeapYear.ps1</title><link>http://blogs.msdn.com/powershell/archive/2008/12/23/advanced-functions-and-test-leapyear-ps1.aspx#9251964</link><pubDate>Wed, 24 Dec 2008 20:20:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9251964</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;@alex&lt;/p&gt;
&lt;p&gt;Great point!&lt;/p&gt;
&lt;p&gt;The problem comes when you have multiple parametersets. &amp;nbsp;That might be hard to have an obvious solution. &amp;nbsp;That said, the whole point of making these FUNCTIONS was to provide a smooth glide path from simple to sophosticated. &amp;nbsp;As such, we could do this for the vast majority of the functions which will only have a single parameterset.&lt;/p&gt;
&lt;p&gt;Please file this as a bug/suggestion (on &lt;a rel="nofollow" target="_new" href="https://connect.microsoft.com"&gt;https://connect.microsoft.com&lt;/a&gt;) &amp;nbsp;- we are at a point where that is the only input we can consider acting on for this release. &lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;jps&lt;/p&gt;
</description></item><item><title>re: Advanced Functions and Test-LeapYear.ps1</title><link>http://blogs.msdn.com/powershell/archive/2008/12/23/advanced-functions-and-test-leapyear-ps1.aspx#9257590</link><pubDate>Tue, 30 Dec 2008 23:48:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9257590</guid><dc:creator>Chris Federico</dc:creator><description>&lt;p&gt;JPS ,&lt;/p&gt;
&lt;p&gt; I have a question why did you not start the function with Function Test-Leapyear {&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I just noticed this .Is this because your using a process block ?&lt;/p&gt;
&lt;p&gt;I had created a similar function and encased it in a Function Get-whatever {} with the process block inside and it didn't work . Taking away the Function keyword like you have written it works fine . Just wanted to know why that was ?&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;</description></item><item><title>re: Advanced Functions and Test-LeapYear.ps1</title><link>http://blogs.msdn.com/powershell/archive/2008/12/23/advanced-functions-and-test-leapyear-ps1.aspx#9257941</link><pubDate>Wed, 31 Dec 2008 05:21:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9257941</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;@Chris&lt;/p&gt;
&lt;p&gt;I put it into a file Test-Leapyear.ps1 and put it into my path. &amp;nbsp;That way I can just type Test-Leapyear and PS will find it and invoke it. &amp;nbsp;When you declare it a FUNCTION you have to DOT-SOURCE the file before you can invoke it. &amp;nbsp;There are pros and cons to each approach. &amp;nbsp;This wasn't a function I intend to use a lot and maximal performance doesn't matter so I decided to make it an external file.&lt;/p&gt;
&lt;p&gt;jps&lt;/p&gt;
</description></item><item><title>re: Advanced Functions and Test-LeapYear.ps1</title><link>http://blogs.msdn.com/powershell/archive/2008/12/23/advanced-functions-and-test-leapyear-ps1.aspx#9258550</link><pubDate>Wed, 31 Dec 2008 17:56:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9258550</guid><dc:creator>Jeremy Pack</dc:creator><description>&lt;p&gt;#Requires -Version 2.0 &lt;/p&gt;
&lt;p&gt;Is this supported in V1.0 ie is there a way to get PS V1.0 throw an error if it runs a scritpt that needs V2.0 of PS?&lt;/p&gt;</description></item><item><title>re: Advanced Functions and Test-LeapYear.ps1</title><link>http://blogs.msdn.com/powershell/archive/2008/12/23/advanced-functions-and-test-leapyear-ps1.aspx#9258581</link><pubDate>Wed, 31 Dec 2008 18:31:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9258581</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;&amp;gt; Is this supported in V1.0 ie is there a way to get PS V1.0 throw an error if it runs a scritpt that needs V2.0 of PS?&lt;/p&gt;
&lt;p&gt;Absolutely.&lt;/p&gt;
&lt;p&gt;jps&lt;/p&gt;
</description></item></channel></rss>