Saturday, November 7, 2009

Reset TCP/IP Configuration in Windows

So tonight I discovered that my sister-in-law's computer didn't like to do DHCP. We got the following message in the Event Viewer:

Your computer was unable to automatically configure the IP parameters for the Network Card with the network address XXXXXXXXXXXX. The following error occurred during configuration: The parameter is incorrect..

(Yes, the double punctuation mark at the end was part of the message..)

She's running Vista x64 SP1 for those who are interested. This was happening on her wireless connection. When configured with a manual IP address, or with a manually specified fall-back address for DHCP the system worked fine on the Internet. This was convenient as it allowed me to search on the Internet.

I wanted to try and re-install the DHCP client, or all of TCP/IP. Instead, I found this really cool command that reset the registry and other configuration settings related to TCP/IP:

netsh int ip reset [ log_file_name]

The command required to be run as an adminsitrator, so I had to open the command prompt as an administrator and had to pass the TSA... um... I mean UAC test. Then I ran the command and it was suggested I reboot the computer. Attempting to avoid any chance of a pat-down like my friend Luke I immediately complied. After the reboot, her computer was able to get an address through DHCP and I will be able to sleep better tonight. Thanks Petri IT Knowledgebase for providing this info!

No comments:

Post a Comment