I am trying to develop a script that will bring back the corresponding MAC address to a range of ip addresses and then out put that data to a file.
Here is what i have so far;
Echo Results correct as of %Date% %Time% >> "C:\MacAdds.txt"
SET /a t=t+1
GETMAC /FO TABLE /S 10.42.7.%t% > nul >> "C:\MacAdds.txt"
IF %t%==256 Exit
It works when just doing a standard ping rather than the GETMAC command.
I dont know where im going wrong so any help would be great!!