To reset the TCP_IP protocol using batch processing _dos/bat

Source: Internet
Author: User

In the XP Ghost XP network Components list, there is an Internet protocol, which is also known as TCP or IP, and the uninstall button is grayed out--not optional--if in exceptional circumstances we need to reinstall the tcp/ The IP protocol can be done by using the following batch process

Copy Code code as follows:

@echo off
Echo.
Echo is about to reset the TCP/IP protocol. Resetting can cause network programs to work abnormally.
Echo only recommends attempting this reset operation if TCP/IP is compromised and cannot be connected to the Internet.
Echo.
Echo any key starts resetting the Tcp/ip,ctel+c abort operation ...
Pause>nul
Echo.
ECHO is generating the relevant registry backup to the desktop ...
Reg Export HKLM\System\CurrentControlSet\Services\Tcpip\Parameters "%userprofile%\ desktop \tcpip_bak.hiv"
Reg Export Hklm\system\currentcontrolset\services\dhcp\parameters "%userprofile%\ desktop \dhcp_bak.hiv"
Echo.
ECHO is resetting TCP/IP ...
netsh int ip reset "%userprofile%\ desktop \tcp_ip reset log. Log"
Echo.
ECHO has finished resetting TCP/IP, please reboot the computer to take effect!
Echo Note: If there is a blue screen error after reboot, please note the relevant file information for the prompt.
Echo then removes the key value associated with the error in the registry in Safe mode!
Echo.
echo any key exit ...
Pause>nul

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.