Explicitly allowed network ports
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
There's a list of restricted ports built into Microsoft Edge. Connections to these ports fail. This policy allows bypassing that list. The set of ports is defined as a comma-separated list that outgoing connections should be permitted on.
Ports are restricted to prevent Microsoft Edge from being used as a vector to exploit various network vulnerabilities. Setting this policy exposes your network to attacks. This policy is intended as a temporary workaround for error code "ERR_UNSAFE_PORT" while migrating a service running on a blocked port to a standard port (for example, port 80 or 443).
Malicious websites can easily detect that this policy is set. They also detect the ports for which this policy is set, and then they use that information to target attacks.
Each port listed in this policy is labeled with a date until which that port can be unblocked. After that date, the port is restricted, regardless of whether it's specified by the value of this policy.
Leaving the value empty or unset means that all restricted ports are blocked. Invalid port values set through this policy are ignored while valid ones are still applied.
This policy overrides the "--explicitly-allowed-ports" command-line option.
Policy options mapping:
* 554 (554) = port 554 (can be unblocked until 2021/10/15)
* 10080 (10080) = port 10080 (can be unblocked until 2022/04/01)
* 6566 (6566) = port 6566 (can be unblocked until 2021/10/15)
* 989 (989) = port 989 (can be unblocked until 2022/02/01)
* 990 (990) = port 990 (can be unblocked until 2022/02/01)
Use the preceding information when configuring this policy.
Example value:
10080
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\EdgeHKEY_CURRENT_USER\Software\Policies\Microsoft\Edge- Nom de la valeur
- non défini dans l'ADMX
Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Ordinateur (HKLM)
Activer
# Activer : msedge/ExplicitlyAllowedNetworkPorts
$k = 'HKLM:\Software\Policies\Microsoft\Edge\ExplicitlyAllowedNetworkPorts'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Explicitly allowed network ports
# Liste non additive : les valeurs existantes de la clé sont d'abord effacées
if (Test-Path -Path $k) { (Get-Item -Path $k).Property | ForEach-Object { Remove-ItemProperty -Path $k -Name ([WildcardPattern]::Escape($_)) -ErrorAction SilentlyContinue } }
$values = @('<valeur1>', '<valeur2>') # Remplacez les valeurs par les vôtres
$i = 1
foreach ($v in $values) { Set-ItemProperty -Path $k -Name ('' + $i) -Value $v -Type String; $i++ }Désactiver
# Désactiver : msedge/ExplicitlyAllowedNetworkPorts
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : msedge/ExplicitlyAllowedNetworkPorts
$k = 'HKLM:\Software\Policies\Microsoft\Edge\ExplicitlyAllowedNetworkPorts'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinueUtilisateur (HKCU)
Activer
Désactiver
Revenir à « Non configuré »
Options (1)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails |
|---|---|---|---|---|
| Explicitly allowed network portsExplicitlyAllowedNetworkPortsDesc | Liste (tableau)list | Software\Policies\Microsoft\Edge\ExplicitlyAllowedNetworkPortsValeurs nommées « » + n° | REG_SZ (valeurs sous la clé) |
Application
Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — modèles de novembre 2026
Modèles officiels téléchargés le 12 novembre 2026.