Windows Server record 3389 Remote Desktop IP policy

Source: Internet
Author: User
Tags echo date

The 3389ip Log Path is c: \ windows \ pdplog \ rdplog.txt
Program Code Copy code The Code is as follows: MD c: \ windows \ pdplog
Echo date/t ^> rdplog.txt> C: \ WINDOWS \ pdplog. cmd
Echo Time/t ^> rdplog.txt> C: \ WINDOWS \ pdplog. cmd
Echo netstat-n-p tcp ^ | find ": 3389" ^> rdplog.txt> C: \ WINDOWS \ pdplog. cmd
Echo start explorer> C: \ WINDOWS \ pdplog. cmd

: the added user automatically records the IP address used each time he or she enters the Remote Desktop to detect hacker traces!
Reg Add "HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Control \ Terminal Server \ winstations \ RDP-TCP"/V finheritinitialprogram/T REG_DWORD/D "00000000"/F
Reg add "HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Control \ Terminal Server \ winstations \ RDP-TCP"/V workdirectory/T REG_SZ/d c: \ windows \ pdplog \/F
Reg Add "HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Control \ Terminal Server \ winstations \ RDP-TCP"/V initialprogram/T REG_SZ/D "C: \ windows \ pdplog. cmd "/F
Reg Add" HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server \ winstations \ RDP-TCP "/V finheritinitialprogram/T REG_DWORD/D" 00000000 "/F
Reg Add "HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server \ winstations \ RDP-TCP"/V workdirectory/T REG_SZ/d c: \ windows \ pdplog \/F
Reg Add "HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server \ winstations \ RDP-TCP"/V initialprogram/T REG_SZ/D "C: \ windows \ pdplog. cmd "/F

the Remote Desktop IP policy has been added! Press any key to exit!
pause> NUL

Related Article

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.