Open in the explorer

Set 3G Cost

Définir le coût 3G

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › WWAN Service › WWAN Media Cost FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Service du réseau étendu sans fil (WWAN) › Coût du média WWAN
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
wwansvc.admx
Internal name
wwansvc/SetCost3G

Explanation

This policy setting configures the cost of 3G 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 3G 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 3G connections is Fixed by default.

French text from Windows 11 26H2

Ce paramètre de stratégie configure le coût des connexions 3G 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éfinirez le coût de toutes les connexions 3G 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 3G 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/SetCost3G
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WwanSvc\NetCost'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Please select a 3G connection cost value to set
# Possible options:
#   Unrestricted = 1
#   Fixed = 2
#   Variable = 3
Set-ItemProperty -Path $k -Name 'Cost3G' -Value 1 -Type DWord

Disable

# Disable: wwansvc/SetCost3G
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": wwansvc/SetCost3G
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WwanSvc\NetCost'
Remove-ItemProperty -Path $k -Name 'Cost3G' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Please select a 3G connection cost value to set:Sélectionnez une valeur de coût de connexion 3G à définir :Cost3G_DropdownlistDrop-down listenumCost3GREG_DWORD
Required · Default choice (UI): #0
LabelValue
UnrestrictedREG_DWORD = 1
FixedREG_DWORD = 2
VariableREG_DWORD = 3

Availability