<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Cmdlet clashes</title>
	<atom:link href="http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/feed/" rel="self" type="application/rss+xml" />
	<link>http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/</link>
	<description>doing inappropriate things with powershell</description>
	<lastBuildDate>Mon, 31 Dec 2007 14:15:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: alex</title>
		<link>http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/comment-page-1/#comment-116</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Fri, 13 Apr 2007 20:54:12 +0000</pubDate>
		<guid isPermaLink="false">http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/#comment-116</guid>
		<description>hi nice site.</description>
		<content:encoded><![CDATA[<p>hi nice site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adrian</title>
		<link>http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/comment-page-1/#comment-90</link>
		<dc:creator>adrian</dc:creator>
		<pubDate>Fri, 09 Mar 2007 15:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/#comment-90</guid>
		<description>Unfortunately not. If there is a conflict, PowerShell throws a terminating error, eg:

The term &#039;out-banner&#039; resolved to a cmdlet name that is ambiguous. Pos
sible matches include: Soapyfrog.Grrr\Out-Banner soapyfrog.conflict\Ou
t-Banner.
At line:1 char:11
+ out-banner  &lt;&lt;&lt;&lt; hello

So without qualification, having duplicates will break a script.</description>
		<content:encoded><![CDATA[<p>Unfortunately not. If there is a conflict, PowerShell throws a terminating error, eg:</p>
<p>The term &#8216;out-banner&#8217; resolved to a cmdlet name that is ambiguous. Pos<br />
sible matches include: Soapyfrog.Grrr\Out-Banner soapyfrog.conflict\Ou<br />
t-Banner.<br />
At line:1 char:11<br />
+ out-banner  <<<< hello</p>
<p>So without qualification, having duplicates will break a script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lance Robinson</title>
		<link>http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/comment-page-1/#comment-89</link>
		<dc:creator>Lance Robinson</dc:creator>
		<pubDate>Fri, 09 Mar 2007 15:08:15 +0000</pubDate>
		<guid isPermaLink="false">http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/#comment-89</guid>
		<description>Well I suppose add-pssnapin sets its own precedence level, so if I add your snap-in most recently, it will be the default used in case of a conflict (I think).  Anything more fine-tuned than that would probably just be annoying.</description>
		<content:encoded><![CDATA[<p>Well I suppose add-pssnapin sets its own precedence level, so if I add your snap-in most recently, it will be the default used in case of a conflict (I think).  Anything more fine-tuned than that would probably just be annoying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Hill</title>
		<link>http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/comment-page-1/#comment-88</link>
		<dc:creator>Keith Hill</dc:creator>
		<pubDate>Fri, 09 Mar 2007 05:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/#comment-88</guid>
		<description>You make a good point.  It is something the PowerShell is probably going to need to address in a future release as more and more vendors provide PowerShell snapins.</description>
		<content:encoded><![CDATA[<p>You make a good point.  It is something the PowerShell is probably going to need to address in a future release as more and more vendors provide PowerShell snapins.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adrian</title>
		<link>http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/comment-page-1/#comment-87</link>
		<dc:creator>adrian</dc:creator>
		<pubDate>Tue, 06 Mar 2007 15:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/#comment-87</guid>
		<description>I suppose you could resolve it like this:

New-Alias out-banner soapyfrog.grrr\out-banner

If you have lots of cmdlets, you might try this:

gcm -PSSnapin soapyfrog.grrr &#124;% {$n=$_.name;$s=$_.pssnapin; new-alias -name &quot;$n&quot; -value &quot;$s\$n&quot; }

But that&#039;s a bit of a hack.

I notice that default tab completion in the shell does alternate between different same-named cmdlets, so the PowerShell team did at least think about this.</description>
		<content:encoded><![CDATA[<p>I suppose you could resolve it like this:</p>
<p>New-Alias out-banner soapyfrog.grrr\out-banner</p>
<p>If you have lots of cmdlets, you might try this:</p>
<p>gcm -PSSnapin soapyfrog.grrr |% {$n=$_.name;$s=$_.pssnapin; new-alias -name &#8220;$n&#8221; -value &#8220;$s\$n&#8221; }</p>
<p>But that&#8217;s a bit of a hack.</p>
<p>I notice that default tab completion in the shell does alternate between different same-named cmdlets, so the PowerShell team did at least think about this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lance Robinson</title>
		<link>http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/comment-page-1/#comment-86</link>
		<dc:creator>Lance Robinson</dc:creator>
		<pubDate>Tue, 06 Mar 2007 14:44:50 +0000</pubDate>
		<guid isPermaLink="false">http://ps1.soapyfrog.com/2007/03/06/cmdlet-clashes/#comment-86</guid>
		<description>I wonder if there is a way to define a permanent (in your profile) precedence for such ambiguous terms, so that if I use &quot;out-banner&quot; in my scripts, it will automatically assume that I am talking about the SoapyFrom.Grrr\out-banner.</description>
		<content:encoded><![CDATA[<p>I wonder if there is a way to define a permanent (in your profile) precedence for such ambiguous terms, so that if I use &#8220;out-banner&#8221; in my scripts, it will automatically assume that I am talking about the SoapyFrom.Grrr\out-banner.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

