<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PING | KC's Blog</title>
	<atom:link href="https://www.kjctech.net/tag/ping/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kjctech.net</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2023 18:20:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/12/cropped-KC-Logo.png?fit=32%2C32&#038;ssl=1</url>
	<title>PING | KC's Blog</title>
	<link>https://www.kjctech.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">24634607</site>	<item>
		<title>Quickly Ping A Range of IP to Find Dead IP on Windows</title>
		<link>https://www.kjctech.net/quickly-ping-a-range-of-ip-to-find-dead-ip-on-windows/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=quickly-ping-a-range-of-ip-to-find-dead-ip-on-windows</link>
					<comments>https://www.kjctech.net/quickly-ping-a-range-of-ip-to-find-dead-ip-on-windows/#comments</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Wed, 29 Aug 2018 21:59:23 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PING]]></category>
		<category><![CDATA[powershell]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4195</guid>

					<description><![CDATA[<p>Instead of looking for a tool, there is a very quick and easy way that lets me ping a wild range of IPs to find out which IPs are free and which ones have been taken, using the PowerShell built-in cmdlet Test-Connection. And here is how: Copy the code over to PowerShell ISE console, change the IP info and hit [&#8230;]</p>
The post <a href="https://www.kjctech.net/quickly-ping-a-range-of-ip-to-find-dead-ip-on-windows/">Quickly Ping A Range of IP to Find Dead IP on Windows</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>Instead of looking for a tool, there is a very quick and easy way that lets me ping a wild range of IPs to find out which IPs are free and which ones have been taken, using the PowerShell built-in cmdlet <a href="https://docs.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection?view=win10-ps" target="_blank" rel="noopener">Test-Connection</a>. </p>



<p>And here is how:</p>



<pre class="wp-block-code"><code lang="javascript" class="language-javascript">$iprange = 200..254
Foreach ($ip in $iprange)
{
    $computer = "192.168.37.$ip"
    $status = Test-Connection $computer -count 1 -Quiet
    if (!$status)
    {
        $computer + " - available" 
    }
}</code></pre>



<figure class="wp-block-image"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="491" height="548" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/08/image-15.png?resize=491%2C548&#038;ssl=1" alt="" class="wp-image-4197" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/08/image-15.png?w=491&amp;ssl=1 491w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/08/image-15.png?resize=250%2C279&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/08/image-15.png?resize=450%2C502&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/08/image-15.png?resize=360%2C402&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/08/image-15.png?resize=100%2C112&amp;ssl=1 100w" sizes="(max-width: 491px) 100vw, 491px" /></figure>



<p>Copy the code over to PowerShell ISE console, change the IP info and hit the green Go button. You will get the result within a minute.</p>



<p>I personally really like this block of code because I can run many other things between each IP loop to gather more information about each computer on the network, such as uptime, hard drive usage, etc. But if you prefer a one-liner that gives you a set of simple result, try this.</p>



<pre class="wp-block-preformatted">200..254 | foreach { $status=Test-Connection "192.168.37.$_" -Count 1 -Quiet; "192.168.37.$_ $status"}</pre>



<p>Hope it helps.</p>The post <a href="https://www.kjctech.net/quickly-ping-a-range-of-ip-to-find-dead-ip-on-windows/">Quickly Ping A Range of IP to Find Dead IP on Windows</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/quickly-ping-a-range-of-ip-to-find-dead-ip-on-windows/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4195</post-id>	</item>
	</channel>
</rss>
