xp/2003开关3389指令

开启3389:

@echo off
title 开启3389
cls
rem 开启3389
reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server" /v fDenyTSConnections /t REG_DWORD /d 00000000 /f >nul
echo.
echo 提示你:3389已经开启

关闭3389:

echo rem 关闭3389
reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server" /v fDenyTSConnections /t REG_DWORD /d 00000001 /f >nul
echo.
echo 提示你:3389已经关闭

原文地址:https://www.cnblogs.com/milantgh/p/3650410.html