JSI Tip 10540. When you use Internet Explorer 6 to visit a Web site from Windows XP, you receive 'Page not found'?

When you visit a Web site using Internet Explorer 6 on Windows XP, you receive an error like:

Page not found

When you use type ipconfig at a CMD.EXE prompt, you receive an error similar to:

An internal error occurred. Unable to query host name.

This behavior is indicative of missing computer name entries in the registry.

I have scripted FixComputerName.bat to resolve this problem.

The syntax for using FixComputerName.bat is:

FixComputerName <ComputerName>

Where <ComputerName> is the NetBIOS computer name of your Windows XP computer, like JSI009.

NOTE: After running FixComputerName <ComputerName>, you must shutdown and restart your computer.

FixComputerName.bat contains:

@echo off
if \{%1\}==\{\} @echo Syntax: FixComputerName ComputerName&goto :EOF
set CName=%1
set k1="HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName"
set v1="ComputerName"
set k2="HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName"
set v2="ComputerName"
set k3="HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"
set v3="Hostname"
set k4="HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"
set v4="NV Hostname"
@echo REG ADD %k1% /V %v1% /T REG_SZ /F /D "%CName%"
REG ADD %k1% /V %v1% /T REG_SZ /F /D "%CName%"
@echo REG ADD %k2% /V %v2% /T REG_SZ /F /D "%CName%"
REG ADD %k2% /V %v2% /T REG_SZ /F /D "%CName%"
@echo REG ADD %k3% /V %v3% /T REG_SZ /F /D "%CName%"
REG ADD %k3% /V %v3% /T REG_SZ /F /D "%CName%"
@echo REG ADD %k4% /V %v4% /T REG_SZ /F /D "%CName%"
REG ADD %k4% /V %v4% /T REG_SZ /F /D "%CName%"

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.