PowerShell Script to find ESPs on the local network
Posted: Sat Oct 03, 2015 2:54 pm
Hi
I wrote a small powershell script to find all ESPs on the network (based on MAC Address prefix)
you can save it to .ps1 file and run it (make sure you change your ExecutionPolicy, so you can run unsigned scripts)
Hope you will enjoy it
I wrote a small powershell script to find all ESPs on the network (based on MAC Address prefix)
Code: Select all
$ESPREFIX = " 18-FE-34"
$ips += arp -a | sls $ESPREFIX |% { $_.ToString().Trim().Split(" ")[0] + "," + $_.ToString().Trim().Split(" ")[9] } | get-unique
$myList = New-Object System.Collections.ArrayList
$myList.add("IP, MAC")
$myList += $ips
ConvertFrom-Csv $myList | Out-GridView
you can save it to .ps1 file and run it (make sure you change your ExecutionPolicy, so you can run unsigned scripts)
Hope you will enjoy it