Pode ser necessário alterar "UNIQUE" para o equivalente local na saída.
@echo off
set PREFIX=127.0.0
setlocal enabledelayedexpansion
for /l %%i in (1,1,254) do (
nbtstat -a %PREFIX%.%%i > %TEMP%\info.txt
for /F "tokens=4" %%a in ('findstr "MAC" %TEMP%\info.txt') do set MAC=%%a
for /F "tokens=1" %%a in ('findstr /R /C:"<00> UNIQUE " %TEMP%\info.txt' ) do set HOSTNAME=%%a
echo %PREFIX%.%%i;%MAC%;%HOSTNAME%
)