Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
@echo offsetlocal enabledelayedexpansionfor /f "delims=" %%A in ('net view /domain:workgroup') do ( set comp=%%A set comp=!comp:~2! nbtstat -a !comp! >>MAC.txt)
first of allfetching mac all pc in workgroup in one go