Configure GPO to trun off metered network connection on Ethernet (Windows 10)

Hamelic 1 Reputation point
2021-02-08T01:56:35.197+00:00

Hi Technet!

I deployed MECM Agent (2010) on my company co-workers

Rarely, I'm failed to setup because MECM Server restrict to access from metered network connections

Set-As-Metered-Connection.png

I know that I can solve this problem by adding ccmsetup parameters : /Allowmetered

But, I can't modify the deployment policy

So, we have to turn off metered network connection by GPO

I tried to find out how to turn off the function in Windows 10 through googling,

As a result, the GPO template could be checked in WIFI and not in Ethernet.

In addition, I tried to configure the registry reference policy in the path below, but it didn't work.

[ HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\DefaultMediaCost ]

Please help me configure GPO to turn off metered network connections on ethernet.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,677 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,777 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,275 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Fan Fan 15,291 Reputation points Microsoft Vendor
    2021-02-08T05:52:43.363+00:00

    Hi,

    To narrow down the issue , would you please tell how did you configure the registry reference policy?
    For the registry to turn off metered network connection on Ethernet did you do the following configuration:
    Under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\DefaultMediaCost and set the value of the Ethernet to1 ?
    Best Regards,

    Fan


  2. Technik SC885 1 Reputation point
    2021-03-01T12:14:05.213+00:00

    We see the same issue here (metered network --> MECM Client setup failing).

    Looks like the reg key "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\DefaultMediaCost" is no longer in use.

    The new place to look at is

     "HKLM:SOFTWARE\Microsoft\DusmSvc\Profiles\<your NICs GUID>\*\UserCost"
    

    Hence a simple default value won't do the trick.

    You may want to adress this using a PowerShell start up script like:

    $nicGuid = (Get-NetAdapter | Where{$_.InterfaceDescription -like "*Ethernet*"}).InterfaceGuid
    $regpath = "HKLM:\SOFTWARE\Microsoft\DusmSvc\Profiles\$nicGuid\*"
    Set-ItemProperty -Path $regpath -Name UserCost -Value 0
    Restart-Service -Name DusmSvc -Force
    
     
    

    PS: further reading
    https://www.asquaredozen.com/2020/05/22/lockdown-diary-metered-internet-connections-and-broken-configmgr-clients/

    0 comments No comments

  3. Miroslav Katić 1 Reputation point
    2022-10-19T22:16:32.493+00:00

    Great info.
    A little bit tweaked

    252222-image.jpg