<?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: PowerShell Script: Select-Alive</title>
	<atom:link href="http://halr9000.com/article/447/feed" rel="self" type="application/rss+xml" />
	<link>http://halr9000.com/article/447</link>
	<description>(powershell &#38; other stuff)</description>
	<lastBuildDate>Thu, 17 May 2012 06:21:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Episode 49 - Susan Bradley the SBS Diva &#171; PowerScripting Podcast</title>
		<link>http://halr9000.com/article/447/comment-page-1#comment-6947</link>
		<dc:creator>Episode 49 - Susan Bradley the SBS Diva &#171; PowerScripting Podcast</dc:creator>
		<pubDate>Mon, 17 Nov 2008 03:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/447#comment-6947</guid>
		<description>[...] how to build functions which can be used in a pipeline. Hal wrote a script a while ago called Select-Alive  which serves as a good [...]</description>
		<content:encoded><![CDATA[<p>[...] how to build functions which can be used in a pipeline. Hal wrote a script a while ago called Select-Alive  which serves as a good [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarmo</title>
		<link>http://halr9000.com/article/447/comment-page-1#comment-6398</link>
		<dc:creator>Jarmo</dc:creator>
		<pubDate>Wed, 23 Jan 2008 07:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/447#comment-6398</guid>
		<description>Thanks for the script.
I have made some corrections/additions:

Line 4: change $computer to $cn

Line 25(not bug, but a nice addition):

&quot;PSCustomObject&quot;    { if ($obj.cn) { $cn = $obj.cn} else { $cn = $obj.Name } }

Lines 32-34: Current script is very quiet, if computer has an ip address, but does not respond, so I added else statement:

if ($reply.status -eq &quot;Success&quot;) {
	$cn; $pingCount++
} else {
	Write-Verbose &quot;$(get-date -f &#039;s&#039;) ping $($reply.status): $cn&quot;
}</description>
		<content:encoded><![CDATA[<p>Thanks for the script.<br />
I have made some corrections/additions:</p>
<p>Line 4: change $computer to $cn</p>
<p>Line 25(not bug, but a nice addition):</p>
<p>&#8220;PSCustomObject&#8221;    { if ($obj.cn) { $cn = $obj.cn} else { $cn = $obj.Name } }</p>
<p>Lines 32-34: Current script is very quiet, if computer has an ip address, but does not respond, so I added else statement:</p>
<p>if ($reply.status -eq &#8220;Success&#8221;) {<br />
	$cn; $pingCount++<br />
} else {<br />
	Write-Verbose &#8220;$(get-date -f &#8216;s&#8217;) ping $($reply.status): $cn&#8221;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TechProsaic - I write about great software, Internet technology, cool gadgets, and The Next Big Thing. &#187; Solving Problems with PowerShell: Simple Benchmarking</title>
		<link>http://halr9000.com/article/447/comment-page-1#comment-6315</link>
		<dc:creator>TechProsaic - I write about great software, Internet technology, cool gadgets, and The Next Big Thing. &#187; Solving Problems with PowerShell: Simple Benchmarking</dc:creator>
		<pubDate>Wed, 28 Nov 2007 18:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/447#comment-6315</guid>
		<description>[...] PowerShell Script: Select-Alive  [...]</description>
		<content:encoded><![CDATA[<p>[...] PowerShell Script: Select-Alive  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/447/comment-page-1#comment-6242</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Mon, 05 Nov 2007 13:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/447#comment-6242</guid>
		<description>Thanks for the comments Kirk.  No, the default function scope is such that my changes to those global variables don&#039;t stick.  At least that&#039;s what my testing has shown.  Try it yourself, check the value of those before and after running my function.

Changing subjects, I&#039;m thinking of expanding this function to include an RPC ping for when ICMP isn&#039;t desirable, and maybe an WinRM check as well.  Or that might be a separate function.</description>
		<content:encoded><![CDATA[<p>Thanks for the comments Kirk.  No, the default function scope is such that my changes to those global variables don&#8217;t stick.  At least that&#8217;s what my testing has shown.  Try it yourself, check the value of those before and after running my function.</p>
<p>Changing subjects, I&#8217;m thinking of expanding this function to include an RPC ping for when ICMP isn&#8217;t desirable, and maybe an WinRM check as well.  Or that might be a separate function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk Munro</title>
		<link>http://halr9000.com/article/447/comment-page-1#comment-6241</link>
		<dc:creator>Kirk Munro</dc:creator>
		<pubDate>Mon, 05 Nov 2007 12:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/447#comment-6241</guid>
		<description>Hi Hal,

I was just looking this filter over and I think it&#039;s missing something (but I don&#039;t have time to test it right now to verify that).  Correct me if I&#039;m wrong, but isn&#039;t this script permanently changing the values of $verbosePreference and $errorActionPreference such that the changes are retained after the filter has exited?  Wouldn&#039;t it be better to store the current values when you enter the filter, set them based on the switch parameter, and then reset to their original values before you exit?  Otherwise you might cause unexpected behaviour in some users environments after they&#039;ve used this filter, no?

Kirk out.</description>
		<content:encoded><![CDATA[<p>Hi Hal,</p>
<p>I was just looking this filter over and I think it&#8217;s missing something (but I don&#8217;t have time to test it right now to verify that).  Correct me if I&#8217;m wrong, but isn&#8217;t this script permanently changing the values of $verbosePreference and $errorActionPreference such that the changes are retained after the filter has exited?  Wouldn&#8217;t it be better to store the current values when you enter the filter, set them based on the switch parameter, and then reset to their original values before you exit?  Otherwise you might cause unexpected behaviour in some users environments after they&#8217;ve used this filter, no?</p>
<p>Kirk out.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

