3389 Logging Clearance Method _ Server

Source: Internet
Author: User
One. HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default
The right to display, not the original IP key value directly del on it ~ ~ But remember that the default registry is open, the current key is where (generally is the primary key, no tree), according to the default when the tree-like appearance of the Restore on OK
Two. Another method
XP and 2003 under
Reg QUERY "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal server\winstations\rdp-tcp"

Reg QUERY "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal server\winstations\rdp-tcp"/V PortNumber

One more wizard to read 3389 tips
1. General methods
regedit/e c:\3389.reg "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal server\winstations\rdp-tcp"
Type C:\3389.reg | Find "PortNumber"
Del C:\3389.reg

2.XP and 2003 under
Reg QUERY "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal server\winstations\rdp-tcp"/V "PortNumber"

SET/A the hexadecimal value obtained by the

3. Script
echo Dim readcomputername > C:\3389.vbs
echo Set readcomputername=wscript.createobject (^ "wscript.shell^") >> C:\3389.vbs
echo Dim Tsname,tsregpath >> C:\3389.vbs
echo tsregpath=^ "Hklm\system\currentcontrolset\control\terminal server\winstations\rdp-tcp\portnumber^" >> C : \3389.vbs
echo Tsname=readcomputername.regread (Tsregpath) >> C:\3389.vbs
Echo WScript.Echo (^ "TermService port:^" ^&tsname) >> C:\3389.vbs

cscript 3389.vbs

Three. Running in operation
Mstsc-v 59.59.59.59-console to clean up the temp file in IE record after completion

Four. Regedit-e tempts.reg "hkey_current_user\software\microsoft\terminal Server client\default"
Export an existing record

Regedit-s Tempts.reg Import original record, overwrite

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.