@echo off
cls
d:\
cd\
set var=1
:c
net user U0%var% a123456 /add
net localgroup "Remote Desktop Users" U0%var% /add
net localgroup "Users" U0%var% /delete
md U0%var%
Cacls d:\U0%var% /t /e /c /g U0%var%:f
set /a var+=1
if %var% lss 10 goto c
set var=10
:d
net user U%var% a123456 /add
net localgroup "Remote Desktop Users" U%var% /add
net localgroup "Users" U%var% /delete
md U%var%
Cacls d:\U%var% /t /e /c /g U%var%:f
set /a var+=1
if %var% lss 41 goto d
color FC
echo “印艺”远程信息 执行完毕
color 0C
echo.
pause