@echo off
set /p machinecount="Please input the new pc number: "
set /p machinename="Please input the new pc name: "
set /p domainname="Please input the domain name: "
for /l %%i in (1,1,%machinecount%) do netdom add %machinename%%%i /domain:%domainname%
@echo on
for /l %%i in (1,1,%machinecount%) do echo %machinename%%%i add to domain:%domainname%