WINDOWS2003 Automatic logging of remote login IP address

Source: Internet
Author: User

1, create a log directory, such as the C disk under the establishment of an RDP directory "C:/RDP."
2, and then in the "C:/RDP" directory to create a name "RDPlog.txt" text File "C:/rdp/rdplog.txt".
3, and then in the "C:/RDP" directory to create a name "Rdplog.bat" batch file, the content is:

date/t >>rdplog.txt
time/t >>rdplog.txt
Netstat-n-P TCP | Find ": 3389" >>rdplog.txt
Start Explorer


4. Access to Control Panel---management tools---Terminal Server configuration---RDP-TCP---properties-environment-enable the following programs when a user logs on---The program path and filename---write "c:rdprdplog.bat"---start with---write "c:rdp" That's OK. The next time you log in with the terminal will automatically record the IP address to "C:/rdp/rdplog.txt", open directly to see the line.


The method is super simple, we just need to write a. bat file. netstat-n-P TCP | Find ": 3389" >>rdplog.txt, the filename can be modified on its own.

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.