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

정상영 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 for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Microsoft Security | Intune | Configuration Manager | Other
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    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


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.