Tuesday 15 April 2014

script to ping a subnet and look for a mac address on windows

Quick and dirty way to find which IP a mac address is associated with

for /l %i in (1,1,254) do ping -n 1 -w 1 192.168.1.%i
arp -a | find "aa-bb-cc-dd-ee-ff"

This assumes you network is 192.168.1.0 /24