<?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: Tip: Passing Parameters Revisited</title>
	<atom:link href="http://blog.usepowershell.com/2009/03/tip-passing-parameters-revisited/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.usepowershell.com/2009/03/tip-passing-parameters-revisited/</link>
	<description>The Shell Is Calling</description>
	<lastBuildDate>Tue, 10 Jan 2012 04:24:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Steven Murawski</title>
		<link>http://blog.usepowershell.com/2009/03/tip-passing-parameters-revisited/comment-page-1/#comment-37</link>
		<dc:creator>Steven Murawski</dc:creator>
		<pubDate>Tue, 17 Mar 2009 11:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.usepowershell.com/2009/03/tip-passing-parameters-revisited/#comment-37</guid>
		<description>Thanks for checking my work Aleksandar.  When doing that I normally set my initial values to $null, but I left it as $env:computername, so it kept trying to pipe the computer name through the command until Powershell&#039;s recursion limit was hit.  My bad.</description>
		<content:encoded><![CDATA[<p>Thanks for checking my work Aleksandar.  When doing that I normally set my initial values to $null, but I left it as $env:computername, so it kept trying to pipe the computer name through the command until Powershell&#8217;s recursion limit was hit.  My bad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aleksandar</title>
		<link>http://blog.usepowershell.com/2009/03/tip-passing-parameters-revisited/comment-page-1/#comment-36</link>
		<dc:creator>Aleksandar</dc:creator>
		<pubDate>Mon, 16 Mar 2009 21:40:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.usepowershell.com/2009/03/tip-passing-parameters-revisited/#comment-36</guid>
		<description>When I run it in V1:
PS&gt;Check-Service server1
The script failed due to call depth overflow.  The call depth reached 101 and the maximum is 100.

Similar thing in V2:
PS&gt;Check-Service server1
The script failed due to call depth overflow.  The call depth reached 1001 and the maximum is 1000.
    + CategoryInfo          : InvalidOperation: (1001:Int32) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CallDepthOverflow

I&#039;ve found this looking for an error message - http://www.manning-sandbox.com/message.jspa?messageID=59410</description>
		<content:encoded><![CDATA[<p>When I run it in V1:<br />
PS&gt;Check-Service server1<br />
The script failed due to call depth overflow.  The call depth reached 101 and the maximum is 100.</p>
<p>Similar thing in V2:<br />
PS&gt;Check-Service server1<br />
The script failed due to call depth overflow.  The call depth reached 1001 and the maximum is 1000.<br />
    + CategoryInfo          : InvalidOperation: (1001:Int32) [], ParentContainsErrorRecordException<br />
    + FullyQualifiedErrorId : CallDepthOverflow</p>
<p>I&#8217;ve found this looking for an error message &#8211; <a href="http://www.manning-sandbox.com/message.jspa?messageID=59410" rel="nofollow">http://www.manning-sandbox.com/message.jspa?messageID=59410</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Murawski</title>
		<link>http://blog.usepowershell.com/2009/03/tip-passing-parameters-revisited/comment-page-1/#comment-35</link>
		<dc:creator>Steven Murawski</dc:creator>
		<pubDate>Mon, 16 Mar 2009 13:16:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.usepowershell.com/2009/03/tip-passing-parameters-revisited/#comment-35</guid>
		<description>I can&#039;t think of any reason off hand.  I&#039;m looking at it as an order of operations, which do I want to occur first, processing pipeline input or processing parameters being passed in from the expression.  

Using the BEGIN block means I&#039;m prioritizing the expression&#039;s parameters, while using the END block would prioritize the pipeline input.

In most cases, you would be using the function one way or the other and this wouldn&#039;t come in to play.

Nice point.  Thanks!</description>
		<content:encoded><![CDATA[<p>I can&#8217;t think of any reason off hand.  I&#8217;m looking at it as an order of operations, which do I want to occur first, processing pipeline input or processing parameters being passed in from the expression.  </p>
<p>Using the BEGIN block means I&#8217;m prioritizing the expression&#8217;s parameters, while using the END block would prioritize the pipeline input.</p>
<p>In most cases, you would be using the function one way or the other and this wouldn&#8217;t come in to play.</p>
<p>Nice point.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blog.usepowershell.com/2009/03/tip-passing-parameters-revisited/comment-page-1/#comment-34</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Mon, 16 Mar 2009 12:59:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.usepowershell.com/2009/03/tip-passing-parameters-revisited/#comment-34</guid>
		<description>Is there a preference in doing the &#039;$server &#124; Check-Service –Service $service&#039; in an BEGIN block over the END block?</description>
		<content:encoded><![CDATA[<p>Is there a preference in doing the &#8216;$server | Check-Service –Service $service&#8217; in an BEGIN block over the END block?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

