How to disable the ethernet media sense on Windows 8.1 ?

Hello,

On Windows 8.1 we need to keep the network interface available for applications even with cable unpluged.

On XP, there is a working registry key for DHCP (used as a buggy feature?) :

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters

Value Name: DisableDHCPMediaSense

Data Type: DWORD

Value Data Range: 0, 1 (False, True)

But on Windows 8.1, disabling DhcpMediaSense does not have the same behavior. I guess it's only for DHCP.

netsh :

netsh interface ipv4 set global dhcpmediasense=disabled

netsh interface ipv6 set global dhcpmediasense=disabled

 

PowerShell :

Set-NetIPv4Protocol [-DhcpMediaSense<DhcpMediaSense>]

Set-NetIPv6Protocol [-DhcpMediaSense<DhcpMediaSense>]

We do not need any DHCP feature (we use static IP only),

How we can keep parameters shown by "ipconfig" / network API available when cable is unplugged ?

Thanks



March 12th, 2015 12:34pm

Usually the media sense is desired feature and there is no documented way to disable it on modern Windows. To keep a network permanently enabled, you can create a bridge that includes the physical netcard and use it as the network interface.

-- pa

Free Windows Admin Tool Kit Click here and download it now
March 12th, 2015 3:11pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics