今天杀毒软件杀掉了一个病毒,可能把一些系统文件也连带着杀掉了,导致PC的TCPIP协议损坏,不能上网,上次也遇到过这种问题,后来只能重装,但今天被我意外的找到了MS的这篇文章,按照上面说的重装了TCPIP,成功了,又能上网了,免去了重装的代价。
如何在 Windows Server 2003 域控制器上删除和重新安装 TCP/IP
<script type="text/javascript">function loadTOCNode(){}</script>文章编号 | : | 325356 |
最后修改 | : | 2006年5月24日 |
修订 | : | 14.0 |
有关本文的 Microsoft Windows 2000 版本,请参见
299451
(http://support.microsoft.com/kb/299451/)。
重要说明:本文包含有关修改注册表的信息。修改注册表之前,一定要先进行备份,并且一定要知道在出现问题时如何还原注册表。有关如何备份、还原和编辑注册表的信息,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章:
256986
(http://support.microsoft.com/kb/256986/) Microsoft Windows 注册表说明
概要
<script type="text/javascript">loadTOCNode(1, 'summary');</script>
本文介绍如何在基于 Windows Server 2003 的域控制器上删除并重新安装 TCP/IP 和 Winsock。
在对问题进行故障排查时,您可能会怀疑 TCP/IP 或 Winsock 相关组件已损坏。因此,您可能会尝试删除 TCP/IP 和所有相关组件,包括注册表项。但是,您可能会发现无法完成此操作。下面的过程介绍如何在基于 Windows Server 2003 的域控制器上删除并重新安装 TCP/IP。
重要说明
警告:Microsoft 建议您在开始前先通读整个过程,以便对该过程有一个清晰的了解。
在对问题进行故障排查时,您可能会怀疑 TCP/IP 或 Winsock 相关组件已损坏。因此,您可能会尝试删除 TCP/IP 和所有相关组件,包括注册表项。但是,您可能会发现无法完成此操作。下面的过程介绍如何在基于 Windows Server 2003 的域控制器上删除并重新安装 TCP/IP。
重要说明
• | 如果您必须在基于 Windows Server 2003 的域控制器上重置 TCP/IP,建议您按照 Microsoft 知识库文章 317518 中的步骤进行操作。这篇文章介绍了将 TCP/IP 堆栈还原到其原始状态的首选方法。 有关更多信息,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章:
317518
(http://support.microsoft.com/kb/317518/) 如何在 Windows Server 2003 中重置“Internet 协议 (TCP/IP)”
此外,如果运行的是 Microsoft Windows Server 2003 Service Pack 1,则建议使用“netsh winsock reset”命令修复 Winsock。有关“netsh winsock reset”命令的更多信息,请访问下面的 Microsoft 网站:
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/servicepack/overview.mspx
(http://www.microsoft.com/technet/prodtechnol/windowsserver2003/servicepack/overview.mspx)
警告:在运行“netsh winsock reset”命令时,访问或监视 Internet 的程序(如防病毒程序、防火墙程序和代理客户端)可能会受到不良影响。如果使用此解决方案后您的某个程序不能正常工作,请重新安装该程序以恢复功能。 |
• | 只有当所有其他故障排查过程均无法解决该问题时,才使用以下过程。 |
• | 在执行此过程前,Microsoft 强烈建议对您的计算机进行备份。 |
症状
<script type="text/javascript">loadTOCNode(1, 'symptoms');</script>
您可能会遇到下列一个或全部症状:
使用“ping”命令时,输出显示替代 IP 地址的字符。例如,输出可能与以下所示类似:
Ping statistics for:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), C:/>ping www.contoso.com
Pinging www.contoso.com [?] with 32 bytes of data:
Reply from 131.94.57.182: bytes=32 time=86ms TTL=236
Reply from 131.94.57.182: bytes=32 time=74ms TTL=236
Reply from 131.94.57.182: bytes=32 time=74ms TTL=236
Reply from 131.94.57.182: bytes=32 time=74ms TTL=236
Ping statistics for Où?: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds: Minimum = 74ms, Maximum = 86ms, Average = 77ms OR
C:/>ping 131.94.57.182
Pinging ? with 32 bytes of data:
Reply from 131.94.57.182: bytes=32 time=73ms TTL=236
Reply from 131.94.57.182: bytes=32 time=74ms TTL=236
Reply from 131.94.57.182: bytes=32 time=73ms TTL=236
Reply from 131.94.57.182: bytes=32 time=73ms TTL=236
Ping statistics for Où?:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds: Minimum = 73ms, Maximum = 74ms, Average = 73ms
• | An error occurred while renewing interface 'Internet': An operation was attempted on something that is not a socket. |
• | 发出“ipconfig /renew”命令时,您可能会收到下面的错误消息:“An error occurred while renewing interface local area connection: an operation was attempted on something that is not a socket. Unable to contact driver Error code 2” |
• | 在“设备管理器”中,单击“显示隐藏的设备”时,“TCP/IP 协议驱动程序”在“非即插即用驱动程序”下列出并显示为禁用,错误代码为 24。 |
• | 创建拨号连接时,您可能会收到下面的错误消息:Error 720: No PPP Control Protocols Configured |
• | 在命令提示符处发出“ipconfig”命令时,您可能会收到与以下某条消息类似的错误消息:
The operation failed since no adapter is in the state permissible for this operation
The attempted operation is not supported for the type of object referenced.
|
• | 在命令提示符处发出“Netsh int ip reset resetlog.txt”命令时,您可能会收到下面的错误消息:
Initialization function INITHELPERDLL in IPMONTR.DLL failed to start with error code 10107.
|
Ping statistics for:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), C:/>ping www.contoso.com
Pinging www.contoso.com [?] with 32 bytes of data:
Reply from 131.94.57.182: bytes=32 time=86ms TTL=236
Reply from 131.94.57.182: bytes=32 time=74ms TTL=236
Reply from 131.94.57.182: bytes=32 time=74ms TTL=236
Reply from 131.94.57.182: bytes=32 time=74ms TTL=236
Ping statistics for Où?: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds: Minimum = 74ms, Maximum = 86ms, Average = 77ms OR
C:/>ping 131.94.57.182
Pinging ? with 32 bytes of data:
Reply from 131.94.57.182: bytes=32 time=73ms TTL=236
Reply from 131.94.57.182: bytes=32 time=74ms TTL=236
Reply from 131.94.57.182: bytes=32 time=73ms TTL=236
Reply from 131.94.57.182: bytes=32 time=73ms TTL=236
Ping statistics for Où?:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds: Minimum = 73ms, Maximum = 74ms, Average = 73ms
解决方案
<script type="text/javascript">loadTOCNode(1, 'resolution');</script>
要解决此问题,请删除已损坏的注册表项,然后重新安装 TCP/IP 协议。
要删除已损坏的注册表项,请按照下列步骤操作。
警告:注册表编辑器使用不当可导致严重问题,可能需要重新安装操作系统。Microsoft 不能保证您可以解决因注册表编辑器使用不当而导致的问题。使用注册表编辑器需要您自担风险。
重新安装了 TCP/IP 后,请安装 Microsoft Windows 支持工具,然后运行 Netdiag 和 Dcdiag 工具来验证域控制器已正常工作。为此,请按照下列步骤操作:
要删除已损坏的注册表项,请按照下列步骤操作。
警告:注册表编辑器使用不当可导致严重问题,可能需要重新安装操作系统。Microsoft 不能保证您可以解决因注册表编辑器使用不当而导致的问题。使用注册表编辑器需要您自担风险。
1. | 重新启动域控制器。 |
2. | 当显示 BIOS 信息时,按 F8。 |
3. | 选择“目录服务还原模式”,然后按 Enter。 |
4. | 使用“目录服务还原模式”密码登录。 |
5. | 单击“开始”,然后单击“运行”。 |
6. | 在“打开”框中,键入 regedit,然后单击“确定”。 |
7. | 找到以下注册表子项:
HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/Winsock
HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/Winsock2
|
8. | 右键单击各项,然后单击“删除”。 |
9. | 单击“是”,确认删除各项。 |
10. | 关闭 Regedit。 |
11. | 在 %winroot%/inf 中找到 Nettcpip.inf 文件,然后在记事本中打开该文件。 |
12. | 找到“[MS-TCPIP.PrimaryInstall]”节。 |
13. | 编辑“Characteristics = 0xa0”项,将“0xa0”替换为“0x80”。 |
14. | 保存该文件,然后退出记事本。 |
15. | 在“控制面板”中,双击“网络连接”,右键单击“本地连接”,然后选择“属性”。 |
16. | 在“常规”选项卡上,单击“安装”,选择“协议”,然后单击“添加”。 |
17. | 在“选择网络协议”窗口中,单击“从磁盘安装”。 |
18. | 在“厂商文件复制来源:”文本框中,键入 c:/windows/inf,然后单击“确定”。 |
19. | 选择“Internet 协议(TCP/IP)”,然后单击“确定”。 注意:此步骤将让您返回到“本地连接属性”屏幕,但现在“卸载”按钮可用。 |
20. | 选择“Internet 协议(TCP/IP)”,单击“卸载”,然后单击“是”。 |
21. | 重新启动计算机,然后按照步骤 2 至步骤 4 中的说明选择“目录服务还原模式”。 |
22. | 在“控制面板”中,双击“网络连接”,右键单击“本地连接”,然后选择“属性”。 |
23. | 在“常规”选项卡上,单击“安装”,选择“协议”,然后单击“添加”。 |
24. | 在“选择网络协议”窗口中,单击“从磁盘安装”。 |
25. | 在“厂商文件复制来源”文本框中,键入 c:/windows/inf,然后单击“确定”。 |
26. | 选择“Internet 协议(TCP/IP)”,然后单击“确定”。 |
27. | 重新启动计算机。 |
1. | 将 Windows Server 2003 CD-ROM 插入到计算机的 CD-ROM 或 DVD-ROM 驱动器中。 |
2. | 单击“开始”,单击“运行”,键入“DriveLetter:/Support/Tools/suptools.msi”(其中,DriveLetter 是您的 CD-ROM 或 DVD-ROM 驱动器),然后单击“确定”。 |
3. | 按照屏幕上的说明完成 Windows 支持工具的安装。 |
4. | 在命令提示符处,定位到安装 Support Tools 的文件夹。默认情况下,此文件夹为 C:/Program Files/Support Tools。 |
5. | 键入 dcdiag /v,以进行域控制器诊断,并随后对任何错误进行处理。 |
6. | 键入 netdiag /v,以进行网络诊断,并随后对任何错误进行处理。 |
参考
<script type="text/javascript">loadTOCNode(1, 'references');</script>这篇文章中的信息适用于:
• | Microsoft Windows Server 2003 Datacenter Edition |
• | Microsoft Windows Server 2003 Enterprise Edition |
• | Microsoft Windows Server 2003 Standard Edition |
• | Microsoft Windows Server 2003 Web Edition |
• | Microsoft Windows Server 2003, 64-Bit Datacenter Edition |
• | Microsoft Windows Server 2003 64-bit Enterprise Edition |
关键字: | kbactivedirectory kbenv kbhowtomaster kbnetwork KB325356 |