question

Hamelic-2915 avatar image
0 Votes"
Hamelic-2915 asked TechnikSC885-3746 edited

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

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-generalmem-cm-generalwindows-10-networkwindows-group-policymem-cm-site-deployment
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

FanFan-MSFT avatar image
0 Votes"
FanFan-MSFT answered FanFan-MSFT commented

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
 
Just want to confirm the current situations.
If there's anything you'd like to know, don't hesitate to ask.

Best Regards,

0 Votes 0 ·
TechnikSC885-3746 avatar image
0 Votes"
TechnikSC885-3746 answered TechnikSC885-3746 edited

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/

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.