Set 4G Cost
Définir le coût 4G
Explanation
This policy setting configures the cost of 4G connections on the local machine.
If this policy setting is enabled, a drop-down list box presenting possible cost values will be active. Selecting one of the following values from the list will set the cost of all 4G connections on the local machine:
- Unrestricted: Use of this connection is unlimited and not restricted by usage charges and capacity constraints.
- Fixed: Use of this connection is not restricted by usage charges and capacity constraints up to a certain data limit.
- Variable: This connection is costed on a per byte basis.
If this policy setting is disabled or is not configured, the cost of 4G connections is Fixed by default.
Ce paramètre de stratégie configure le coût des connexions 4G sur la machine locale.
Si ce paramètre de stratégie est activé, une zone de liste déroulante présentant les valeurs de coût possibles sera active. En sélectionnant l'une des valeurs suivantes dans la liste, vous définissez le coût de toutes les connexions 4G sur la machine locale :
- Sans restriction : L'utilisation de cette connexion est illimitée et n'est pas limitée par les frais d'utilisation et les contraintes de capacité.
- Fixe : L'utilisation de cette connexion n'est pas limitée par les frais d'utilisation et les contraintes de capacité jusqu'à une certaine limite de données.
- Variable : Cette connexion est facturée sur la base d'un coût par octet.
Si ce paramètre de stratégie est désactivé ou n'est pas configuré, le coût des connexions 4G est fixe par défaut.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WwanSvc\NetCost- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: wwansvc/SetCost4G
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WwanSvc\NetCost'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Please select a 4G connection cost value to set
# Possible options:
# Unrestricted = 1
# Fixed = 2
# Variable = 3
Set-ItemProperty -Path $k -Name 'Cost4G' -Value 1 -Type DWordDisable
# Disable: wwansvc/SetCost4G
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": wwansvc/SetCost4G
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WwanSvc\NetCost'
Remove-ItemProperty -Path $k -Name 'Cost4G' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Please select a 4G connection cost value to set:Sélectionnez une valeur de coût de connexion 4G à définir :Cost4G_Dropdownlist | Drop-down listenum | Cost4G | REG_DWORD | Required · Default choice (UI): #0
|