Set/unset mobile connections as metered
Background info
In a similar question on answers.microsoft.com the OP sees the "Metered connection" switch in the mobile connection options, but it is disabled. A Microsoft representative says:
That UI toggle in the cellular page is deprecated and no longer used. We are aware of the confusion surrounding the toggle and are investigating a resolution. Thank you for your feedback and sorry for the confusion!
Given the current interface, "resolution" has consisted in removing the switch. But IMHO the confusion increases, since now we are unable to change the connection cost status, plus the UI is totally clueless about it.
As regard the netsh
command mentioned in my answer, strange as it may seem (in the same thread) a Microsoft wiki author discourages its usage, since:
there is, as yet, no published Command reference beyond the Windows 7 one so information is sparse. [The] command should not have been posted in this thread.
The suggested way for affecting the connection cost of the mobile connection consists in modifying values in the registry.
Solution(s)
First, identify the registry key:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\DefaultMediaCost
If you just want to know which is the status of your connection:
check the value names3G
and4G
ofDefaultMediaCost
: if they are set to1
the related mobile connections will be unmetered; a value of2
sets the related connections to "metered". Expect to find a1
as a value.If you want to change the values named above:
note that the keyDefaultMediaCost
is set by drivers and therefore the owner is the "TrustedInstaller" account. To be able to modify it, you need to right click onDefaultMediaCost
, choose permissions and set yourself as theOwner
through the dialog "Advanced" properties. Set the replace-subcontainers checkbox before applying the changes. Once youOwner
, set alsoFull Control
checkbox.If you need to switch values often:
set them to metered, right click onDefaultMediaCost
and export them as a reg file. Set them to unmetered and export again. Double click on the metered/unmetered reg file as needed.
Note that modifications are per connection type and not per single connection.
Unfortunately the changes in DefaultMediaCost
require reboot, which makes inconvenient a scheduling of the peak/non-peak hour DefaultMediaCost`.
As regard data limits, based on the following Microsoft Guidelines, I infer that, under a variable or approaching data cap, the policy is to download only high priority Windows updates, but "allow users to explicitly [...] download lower priority updates".
EDIT
@HeySora notes that Windows 1903 made 2 the default choice for both 3G and 4G networks, thus making cellular connections metered at each reboot
Related videos on Youtube
![antonio](https://i.stack.imgur.com/CAeGt.jpg?s=256&g=1)
antonio
I use Emacs and R for financial research Consider to post or follow the virtualization proposal.
Updated on September 18, 2022Comments
-
antonio almost 2 years
In my notebook I have a Sierra Wireless 4G/LTE module and Windows 10 Pro Anniversary Update. I would like to avoid Windows to download updates when I am connected through the mobile connection. Even better it would be to disable downloads only in peak hours and allow them otherwise.
For Wi-Fi connections it is possible to set the option "Metered connection", clicking on the connection properties in "Network & Internet -> Wi-Fi". I don't see the equivalent setting for mobile connections under "Network & Internet -> Cellular".
I might set anyway a "Data limit" for mobile connections in "Network & Internet -> Data usage".
Will "Data limit", once set, block updates?I have seen that I can set cost parameters for mobile connection
mycon
innetsh
with:netsh mbn set profileparameter name="myconn" cost=type
The type can be:
Unrestricted
,Fixed
,Variable
.
WillFixed
orVariable
block updates?What are other possibilities to block updates for specific connections or times ?
-
Daryn over 7 yearsNote that unless a registry value is documented by Microsoft, setting Microsoft registry values directly is strongly discouraged, as they don't guarantee behavior (and can change it arbitrarily in the future)
-
antonio over 7 yearsThanks. Anyway, the link refers to Windows 8, Microsoft official Guidelines for connection usage data mentioned in my solution, target Windows 10 and are much more detailed.
-
antonio over 7 years@Daryn: answers.microsoft.com is not exactly an underground forum. BTW, even if editing registry keys might be a risky business for beginners, I can assure that your mobile provider sucking all your money is much worse.
-
Daryn over 7 yearsAgreed the guidelines are good, but they are guidelines for what you should do when implementing an application ("recommendations when using Windows Runtime Network Information APIs in your connected app"). The Metered connections FAQ was the only thing I found with any statement from MS on what Windows Updates would do in that situation. However as you said the FAQ is older and Windows 10 behaviour could be different — which would be allowed by the ambiguous wording in the FAQ anyways
-
HeySora almost 5 yearsWindows 1903 made
2
the default choice for both3G
and4G
networks, thus making my cellular connection being metered at each reboot. Thanks for this explanation! -
antonio almost 5 years@HeySora: Thanks, I added an edit with your comment