2024年1月28日发(作者:)

PRB:使用千兆以太网设备无法连接到域控制器而且无法应用组策略

/kb/326152

症状:

使用千兆以太网设备的基于 Windows XP 的系统可能无法加入 Active Directory 域,这会中断组策略下载过程。此情况发生时,将有一系列事件写入事件日志。例如:

Event ID:1054

Source:NT AUTHORITY/SYSTEM

Type:Error

Description:Windows cannot obtain the domain controller name for your computer network.(The

specified domain either does not exist or exist or could not be contacted).Group Policy processing

aborted.

Data:(unavailable)

- 以及 -

Event ID:1000

Source:UserInit

Type:Error

Description:Could not execute the following script . The system cannot find

the file specified.

Data:(unavailable)

原因

发生此问题是因为,链路状态将随着网络适配器(也叫网络接口卡或 NIC)驱动程序的初始化和网络适配器硬件与网络基础结构协商链路而不断变化。“组策略”应用程序堆栈在协商过程完成之前执行,因而会由于缺少有效链路而失败。

回到顶端

替代方法

您可以通过禁用 Windows 中的“媒体感知”功能变通解决此问题。有关如何禁用“媒体感知”的其他信息,请单击下面的文章编号,查看 Microsoft 知识库中相应的文章:

239924 (/kb/239924/EN-US/) How to Disable Media Sense for

TCP/IP in Windows

如果您禁用“媒体感知”,并且不能加入 Active Directory 域或下载组策略,那么请确认您的网络适配器运行的是不是最新的驱动程序。如果您的网络适配器运行的是最新的驱动程序,则当前唯一可用的变通办法是切换到另一网络适配器。

回到顶端

--------------------------------------------------------------------------------

关键字: kbnetwork kbprb KB326152

How to disable the Media Sensing feature for TCP/IP in

Windows

Article ID : 239924

Last Review : November 13, 2006

Revision : 11.1

This article was previously published under Q239924

Important:

This article contains information about how to modify the registry. Make sure to back up the

registry before you modify it. Make sure that you know how to restore the registry if a problem

occurs. For more information about how to back up, restore, and modify the registry, click the

following article number to view the article in the Microsoft Knowledge Base:256986

(/kb/256986/) Description of the Microsoft Windows registry

SUMMARY

On a Windows-based computer that uses TCP/IP, you can use the Media Sensing feature to detect

whether the network media are in a link state. Ethernet network adapters and hubs typically have

a "link" light that indicates the connection status. This status is the same condition that Windows

interprets as a link state. Whenever Windows detects a "down" state, it removes the bound

protocols from that adapter until it is detected as "up" again. Sometimes, you may not want the

network adapter to detect this state. You can set this configuration by modifying the registry.

Note 10B2 coaxial (RG-58) Ethernet cable is not a connection-based medium. Therefore,

Windows does not try to detect a link state when this kind of cabling is used.

MORE INFORMATION

Warning Serious problems might occur if you modify the registry incorrectly by using Registry

Editor or by using another method. These problems might require that you reinstall your

operating system. Microsoft cannot guarantee that these problems can be solved. Modify the

registry at your own risk.

To prevent the network adapter from detecting a link state, follow these steps.

Note

The NetBEUI protocol and the IPX protocol do not support Media Sensing.

1. Start Registry Editor.

2. Locate the following registry subkey:

HKEY_LOCAL_MACHINESystemCurrentControlSetServicesTcpipParameters

3. Add the following registry entry to the Parameters subkey:

Name: DisableDHCPMediaSense

Data type: REG_DWORD (Boolean)

Value: 1

Note This entry controls the behavior of Media Sensing. By default, Media Sensing events trigger

a DHCP client to take an action. For example, when a connect event occurs, the client tries to

obtain a lease. When a disconnect event occurs, the client may invalidate the interface and

routes. If you set this value data to 1, DHCP clients and non-DHCP clients ignore Media Sensing

events.

4. Restart the computer.

Note :

Microsoft Windows Server 2003 supports Media Sensing when it is used in a server cluster

environment. By default, however, Media Sensing is disabled in a Windows Server 2003-based

server cluster, and the DisableDHCPMediaSense registry entry has no effect. In Windows Server

2003 Service Pack 1 (SP1), the DisableClusSvcMediaSense registry entry was introduced. You can

use this registry entry to enable Media Sensing on the Windows Server 2003-based nodes of a

server cluster. The details of the DisableClusSvcMediaSense registry entry are as follows:

Key: HKEY_LOCAL_MACHINEClusterParameters

Name: DisableClusSvcMediaSense

Data type: REG_DWORD (Boolean)

Default value: 0

By default, the DisableClusSvcMediaSense entry is set to 0. When this entry is set to 0, Media

Sensing is disabled. If you set the DisableClusSvcMediaSense entry to 1, you can use the

DisableDHCPMediaSense entry to enable Media Sensing. This behavior matches the behavior of a

Microsoft Windows 2000 Server cluster environment.

--------------------------------------------------------------------------------

APPLIES TO

• Microsoft Windows Server 2003, Standard Edition (32-bit x86)

• Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)

• Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)

• Microsoft Windows Server 2003, Web Edition

• Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems

• Microsoft Windows XP Professional x64 Edition

• Microsoft Windows XP for Itanium-based Systems Version 2003

• Microsoft Windows XP Home Edition

• Microsoft Windows XP Media Center Edition 2002

• Microsoft Windows XP Media Center Edition 2004

• Microsoft Windows XP Professional

• Microsoft Windows XP Tablet PC Edition

• Microsoft Windows 2000 Server

• Microsoft Windows 2000 Advanced Server

• Microsoft Windows 2000 Datacenter Server

• Microsoft Windows 2000 Professional Edition

• Microsoft Systems Management Server 2003

• Microsoft Systems Management Server 2.0 Standard Edition

Keywords: kbhowto kbnetwork KB239924