search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Virtual Machine Manager, Windows Powershell | No Comment | 32,430 views | 28/01/2014 17:45

You can check used ip addresses in your network with following script.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$Start = Get-Date
$Ping = New-Object System.Net.Networkinformation.ping
for ($i=10; $i -le 254; $i++)
{
                $Status = $Null
                $IPAddress = "192.168.5." + $i
                $Status = ($Ping.Send("$IPAddress", 1)).Status
                if ($Status -eq "Success")
                {
                Write-Host "$IPAddress is in use!"
                }
}
$End = Get-Date
$End-$Start

You should change $IPAddress to change subnet.