Open in the explorer

Prohibit connection to roaming Mobile Broadband networks

Interdire la connexion aux réseaux haut débit mobiles itinérants

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › Windows Connection Manager FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Gestionnaire de connexions Windows
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
WCM.admx
Internal name
WCM/WCM_DisableRoaming

Explanation

This policy setting prevents clients from connecting to Mobile Broadband networks when the client is registered on a roaming provider network.

If this policy setting is enabled, all automatic and manual connection attempts to roaming provider networks are blocked until the client registers with the home provider network.

If this policy setting is not configured or is disabled, clients are allowed to connect to roaming provider Mobile Broadband networks.

French text from Windows 11 26H2

Ce paramètre de stratégie empêche les clients de se connecter à des réseaux haut débit mobiles lorsque le client est inscrit sur un réseau de fournisseur d’itinérance.

Si ce paramètre de stratégie est activé, toutes les tentatives de connexion automatique et manuelle aux réseaux de fournisseurs d’itinérance sont bloquées jusqu’à ce que le client s’inscrive sur le réseau du fournisseur local.

Si ce paramètre de stratégie est désactivé ou n’est pas configuré, les clients sont autorisés à se connecter aux réseaux haut débit mobiles du fournisseur d’itinérance.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WcmSvc\GroupPolicy
Value name
fBlockRoaming
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

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: WCM/WCM_DisableRoaming
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WcmSvc\GroupPolicy'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'fBlockRoaming' -Value 1 -Type DWord

Disable

# Disable: WCM/WCM_DisableRoaming
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WcmSvc\GroupPolicy'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'fBlockRoaming' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": WCM/WCM_DisableRoaming
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WcmSvc\GroupPolicy'
Remove-ItemProperty -Path $k -Name 'fBlockRoaming' -ErrorAction SilentlyContinue

Availability