2018-11-19  1,132 views 评论

win2008、2012系统免开防火墙启用3389功能

@echo off

Title 启用3389远程功能

@echo [启用3389功能]

Reg Add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /F 0> NUL 1> NUL 2> NUL

@echo [启动3389服务]

Reg Add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService" /v Start /t REG_DWORD /d 2 /F 0> NUL 1> NUL 2> NUL

net start TermService 0> NUL 1> NUL 2> NUL

ver | find "5.2." > NUL &&  goto old

ver | find "6.0." > NUL &&  goto new

ver | find "6.1." > NUL &&  goto new

ver | find "6.2." > NUL &&  goto new

ver | find "10.0." > NUL &&  goto new

:old

@echo [WinXP/Win2003禁用防火墙服务]

Reg Add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess" /v Start /t REG_DWORD /d 4 /F 0> NUL 1> NUL 2> NUL

net stop SharedAccess 0> NUL 1> NUL 2> NUL

@echo.

@echo 设置完成,3389远程时,被远程电脑必须有系统密码,如果未设置系统密码,请手工设置!

@echo.

pause

goto end

:new

@echo [Win7/Win8/Win10/Win2008/Win2012禁用防火墙服务]

Reg Add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MpsSvc" /v Start /t REG_DWORD /d 4 /F 0> NUL 1> NUL 2> NUL

net stop MpsSvc 0> NUL 1> NUL 2> NUL

@echo.

@echo 设置完成,3389远程时,被远程电脑必须有系统密码,如果未设置系统密码,请手工设置!

@echo.

pause

goto end

原创文章或网络摘录,转载请注明: 转载自守候的时光

本文链接地址: win2008、2012系统免开防火墙启用3389功能

打赏

给我留言

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: