开启3389:

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

 

关闭3389:

echo rem 关闭3389
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 00000001 /f >nul
echo.
echo 提示你:3389已经关闭

posted on 2014-04-07 17:25  milantgh  阅读(396)  评论(0编辑  收藏  举报