Dos命令来恢复远程终端连接。附上远程端口开启的命令:
echo Windows Registry Editor Version 5.00>>3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>>3389.reg
echo "fDenyTSConnections"=dword:00000000>>3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp]>>3389.reg
echo "PortNumber"=dword:00000d3e>>3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]>>3389.reg
echo "PortNumber"=dword:00000d3e>>3389.reg
regedit /s 3389.reg
del 3389.reg |
还提供一个方法,修改注册表开启,什么版本的都适用的,且不会重启。附上命令:
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /F
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v fDenyTSConnections /t REG_DWORD /d 0 |
Cmd、Dos 下开 3389:
echo Windows Registry Editor Version 5.00 >>3389.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\netcache] >>3389.reg
echo "Enabled"="0" >>3389.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >>3389.reg
echo "ShutdownWithoutLogon"="0" >>3389.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer] >>3389.reg
echo "EnableAdminTSRemote"=dword:00000001 >>3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] >>3389.reg
echo "TSEnabled"=dword:00000001 >>3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermDD] >>3389.reg
echo "Start"=dword:00000002 >>3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService] >>3389.reg
echo "Start"=dword:00000002 >>3389.reg
echo [HKEY_USERS\.DEFAULT\Keyboard Layout\Toggle] >>3389.reg
echo "Hotkey"="1" >>3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp] >>3389.reg
echo "ortNumber"=dword:00000D3D >>3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] >>3389.reg
echo "ortNumber"=dword:00000D3D >>3389.reg |
把这些ECHO代码到CMDSHELL下贴粘就可以生成3389.reg文件,接着regedit /s 3389.reg导入注册表:
echo Windows Registry Editor Version 5.00 >>3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] >>3389.reg
echo "fDenyTSConnections"=dword:00000000 >>3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp] >>3389.reg
echo "ortNumber"=dword:00000D3D >>3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] >>3389.reg
echo "PortNumber"=dword:00000D3D >>3389.reg |
把这些ECHO代码到CMDSHELL下贴粘就可以生成3389.reg文件,接着regedit /s 3389.reg导入注册表。
Dos、Cmd命令来恢复远程终端3389连接,Dos、Cmd命令来恢复远程终端连接,Dos、Cmd命令来恢复远程3389连接,Dos、Cmd命令来恢复终端3389连接,Dos、Cmd命令来恢复3389连接,Dos、Cmd命令来恢复远程终端,Dos、Cmd命令来恢复远程3389,Dos、Cmd命令来恢复3389,Dos、Cmd命令恢复3389连接,Dos、Cmd命令恢复远程终端,Dos、Cmd命令恢复远程3389,Dos、Cmd命令恢复3389,Dos、Cmd恢复3389连接,Dos、Cmd恢复远程终端,Dos、Cmd恢复远程3389,Dos、Cmd恢复3389,Dos恢复3389连接,Cmd恢复3389连接,Dos恢复远程终端,Cmd恢复远程终端,Dos恢复远程3389,Cmd恢复远程3389,Dos恢复3389,Cmd恢复3389,Dos 3389,Cmd 3389,dos命令来恢复远程终端连接,附上远程端口开启的命令,Windows Registry Editor Version 5.00,3389.reg ,[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] ,fDenyTSConnections"=dword:00000000 ,[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp] ,"PortNumber"=dword:00000d3e,[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] ,"PortNumber"=dword:00000d3e ,regedit /s 3389.reg ,del 3389.reg,修改注册表开启3389,不重启开启3389命令,Cmd、Dos下开3389,regedit /s 3389.reg导入注册表。
文章作者
Nuclear'Atk
上次更新
2010-10-19
许可协议
Nuclear'Atk(核攻击)网络安全实验室版权所有,转载请注明出处。