终端操作笔记

IT/互联网 / 系统运维 养生小编 来源:互联网 129浏览 0评论

   

    1.查询终端端口

    REG query HKLMSYSTEMCurrentControlSetControlTerminal" "ServerWinStationsRDP-Tcp /v PortNumber

    2.开启XP&2003终端服务

    REG ADD HKLMSYSTEMCurrentControlSetControlTerminal" "Server /v fDenyTSConnections /t REG_DWORD /d 00000000 /f

    3.更改终端端口为2008(0x7d8)默认为3389(0xD3D)

    REG ADD HKLMSYSTEMCurrentControlSetControlTerminal" "ServerWds dpwdTdstcp /v PortNumber /t REG_DWORD /d 0x7d8 /f

    REG ADD HKLMSYSTEMCurrentControlSetControlTerminal" "ServerWinStationsRDP-Tcp /v PortNumber /t REG_DWORD /d 0x7D8 /f

    4.取消xp&2003系统防火墙对终端服务的限制及IP连接的限制

    REG ADD HKLMSYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfileGloballyOpenPortsList /v 3389:TCP /t REG_SZ /d 3389:TCP:*:Enabled:@xpsp2res.dll,-22009 /f

    5.开启Win2000的终端 (需重启)

    新建个记事本文档,复制一下代码,改名为3389.bat.

    echo Windows Registry Editor Version 5.00 >2000.reg

    echo. >>2000.reg

    echo [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersion etcache] >>2000.reg

    echo "Enabled"="0" >>2000.reg

    echo [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon] >>2000.reg

    echo "ShutdownWithoutLogon"="0" >>2000.reg

    echo [HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstaller] >>2000.reg

    echo "EnableAdminTSRemote"=dword:00000001 >>2000.reg

    echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server] >>2000.reg

    echo "TSEnabled"=dword:00000001 >>2000.reg

    echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTermDD] >>2000.reg

    echo "Start"=dword:00000002 >>2000.reg

    echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTermService] >>2000.reg

    echo "Start"=dword:00000002 >>2000.reg

    echo [HKEY_USERS.DEFAULTKeyboard LayoutToggle] >>2000.reg

    echo "Hotkey"="1" >>2000.reg

    echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWds dpwdTdstcp] >>2000.reg

    echo "PortNumber"=dword:0000145B >>2000.reg

    echo [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp] >>2000.reg

    echo "PortNumber"=dword:0000145B >>2000.reg

    6.解决终端超出了最大连接数的命令

    mstsc /v:ip:3389 /console

    本文转自普瑞斯特博客-原文地址:http://www.hacksb.cn/post/159.html