@echo off
setlocal
if {%1}=={} goto syntax
:loop
if {%1}=={} goto finish
set remote=”\\%1\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server”
shift
reg.exe ADD %remote% /v fDenyTSConnections /t REG_DWORD /d 1 /f>nul 2>&1
if NOT %ERRORLEVEL% EQU 0 @echo %remote% NOT found.
goto loop
:syntax
@echo Syntax: RemoteDesktop Computer1 [Computer2 …. Computern]
goto loop
:finish
endlocal
—–
存储成 start3389.bat 然后以管理员身份运行,或者直接双击。