Resetting the IP Stack in Windows 7
Posted by Chris on August 21, 2011
I have a standing rule that I don’t work on friends or relatives computers. When I get home I want to spend time with my family, not cleaning malware from a seven-year old laptop. I made an exception last night for a very good family friend. She had a fairly new Windows 7 laptop that would not connect to any wired or wireless network.
After setting up an isolated wireless network in case the laptop was infected with a virus or trojan I took a quick look at the installed programs and browser behavior. The network adapter statistics showed packets being sent but not received which also meant the machine would not pull a DHCP address. From here I decided to reset the IP stack. The fastest way to accomplish this is via a netsh command. The command is as follows, make sure you are running it from an elevated command prompt;
netsh int ip reset c:\resetlog.txt
The command rewrites two registry keys;
The last portion of the command specifies the log file location. If a log already exists, the file is appended to. I’ve read several references that say you have to specify a log file path however I’ve been able to successfully run the command without it.
In this case the reset solved my problem and the laptop was able to pull a DHCP address. The last step was to disable web filtering in the Webroot Internet Security Suite which was now blocking access to all internet sites. Total repair time thirty minutes, most of spent trying to figure out how to disable the Webroot filtering.