<?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>A Module to Create Modules and Advanced Functions</title><link>http://blogs.msdn.com/powershell/archive/2009/01/02/a-module-to-create-modules-and-advanced-functions.aspx</link><description>[1/3/09 Update - the original link to the attachment containing this code was broken but is now fixed. Sorry. jps] It is hard to overstate how important Modules and Advanced Functions are. If you are a PowerShell user - you need to take the time to learn</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: A Module to Create Modules and Advanced Functions</title><link>http://blogs.msdn.com/powershell/archive/2009/01/02/a-module-to-create-modules-and-advanced-functions.aspx#9269540</link><pubDate>Fri, 02 Jan 2009 21:37:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9269540</guid><dc:creator>tfl</dc:creator><description>&lt;p&gt;Nice Post - I love the concept! I will look to play with this!&lt;/p&gt;
&lt;p&gt;One point: In the penultimate setup command above, you typed:&lt;/p&gt;
&lt;p&gt;PS&amp;gt; New-Item –Type Containter –Force –path ($Env:PSMODULEPATH -Split &amp;quot;;&amp;quot;)[0]&lt;/p&gt;
&lt;p&gt;On my system, with CTP3, this caused an error:&lt;/p&gt;
&lt;p&gt; C:\&amp;gt; New-Item -Type Containter -Force -path ($Env:PSMODULEPATH -Split &amp;quot;;&amp;quot;)[0]&lt;/p&gt;
&lt;p&gt;w-Item : The type is not a known type for the file system. Only &amp;quot;file&amp;quot; and &amp;quot;directory&amp;quot; can be specified.&lt;/p&gt;
&lt;p&gt; line:1 char:9&lt;/p&gt;
&lt;p&gt;New-Item &amp;lt;&amp;lt;&amp;lt;&amp;lt; &amp;nbsp;-Type Containter -Force -path ($Env:PSMODULEPATH -Split &amp;quot;;&amp;quot;)[0]&lt;/p&gt;
&lt;p&gt; &amp;nbsp;+ CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: InvalidArgument: (:) [New-Item], PSArgumentException&lt;/p&gt;
&lt;p&gt; &amp;nbsp;+ FullyQualifiedErrorId : Argument,Microsoft.PowerShell.Commands.NewItemCommand&lt;/p&gt;
&lt;p&gt;A modified version did, however work:&lt;/p&gt;
&lt;p&gt; C:\&amp;gt; New-Item -Type directory -Force -path ($Env:PSMODULEPATH -Split &amp;quot;;&amp;quot;)[0]&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Directory: C:\Users\tfl\Documents\WindowsPowerShell&lt;/p&gt;
&lt;p&gt;de &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LastWriteTime &amp;nbsp; &amp;nbsp; Length Name&lt;/p&gt;
&lt;p&gt;-- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;------------- &amp;nbsp; &amp;nbsp; ------ ----&lt;/p&gt;
&lt;p&gt;--- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1/2/2009 &amp;nbsp; 6:28 PM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Modules&lt;/p&gt;</description></item><item><title>re: A Module to Create Modules and Advanced Functions</title><link>http://blogs.msdn.com/powershell/archive/2009/01/02/a-module-to-create-modules-and-advanced-functions.aspx#9269613</link><pubDate>Fri, 02 Jan 2009 22:52:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9269613</guid><dc:creator>LucD</dc:creator><description>&lt;p&gt;Shouldn't that be Container instead of Containter ?&lt;/p&gt;
&lt;p&gt;At the moment I can't seem to download the attachment.&lt;/p&gt;</description></item><item><title>re: A Module to Create Modules and Advanced Functions</title><link>http://blogs.msdn.com/powershell/archive/2009/01/02/a-module-to-create-modules-and-advanced-functions.aspx#9269662</link><pubDate>Fri, 02 Jan 2009 23:35:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9269662</guid><dc:creator>David Johnston</dc:creator><description>&lt;p&gt;There are some bugs with the help for the advanced functions. &amp;nbsp;I have filed one dealing with the parameter attributes not coming through correctly in the help if you have multiple parameter sets. &amp;nbsp;I very well may just be doing this wrong, but please check out the bug on connect, so maybe you can set me straight.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>re: A Module to Create Modules and Advanced Functions</title><link>http://blogs.msdn.com/powershell/archive/2009/01/02/a-module-to-create-modules-and-advanced-functions.aspx#9270397</link><pubDate>Sat, 03 Jan 2009 18:58:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9270397</guid><dc:creator>gkeary</dc:creator><description>&lt;p&gt;This is a great idea and I would love the source code.&lt;/p&gt;
&lt;p&gt;But the link to Module.zip appears to be broken?&lt;/p&gt;
&lt;p&gt;Any suggestions would be appreciated.&lt;/p&gt;</description></item><item><title>re: A Module to Create Modules and Advanced Functions</title><link>http://blogs.msdn.com/powershell/archive/2009/01/02/a-module-to-create-modules-and-advanced-functions.aspx#9409119</link><pubDate>Mon, 09 Feb 2009 22:08:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9409119</guid><dc:creator>Heath Stewart</dc:creator><description>&lt;p&gt;I recommend you actually put #requires outside of the help comment block; otherwise, (at least as of CTP3) it will show up under &amp;quot;NOTES&amp;quot; (in the example above) when you do get-help on the function.&lt;/p&gt;</description></item><item><title>re: A Module to Create Modules and Advanced Functions</title><link>http://blogs.msdn.com/powershell/archive/2009/01/02/a-module-to-create-modules-and-advanced-functions.aspx#9631649</link><pubDate>Wed, 20 May 2009 09:18:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9631649</guid><dc:creator>tutorial casino</dc:creator><description>&lt;p&gt;I think it is a common practice. First you create a sub module which implements all the necessary hooks for other modules to work nicely with your module. You solve it &amp;quot;in house&amp;quot; first, and when you think the code is perfect then you try to make a common goal with other module authors you try to work with..The module works with 3 other cont rib modules (and there are some patches for other module integrations in the issue queue). The code works nicely, but I would not push the code to other module maintainers yet..&lt;/p&gt;</description></item></channel></rss>