Configure the WebView2 release channel search kind
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
This policy configures the channel search kind for WebView2 applications. By default the channel search kind is 0, which is equivalent to the "Most Stable" search kind in the corresponding WebView2 API; This indicates that WebView2 environment creation should search for a release channel from the most to least stable: WebView2 Runtime, Beta, Dev, and Canary.
To reverse the default search order and use the "Least Stable" search kind, set this policy to 1.
To set the value for the channel search kind, provide a Value name and Value pair. Set value name to the Application User Model ID or the executable file name. You can use the "*" wildcard as value name to apply to all applications.
Example value:
Name: WebView2APISample.exe, Value: 1
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge\WebView2HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge\WebView2- 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 : msedgewebview2/ChannelSearchKind
$k = 'HKLM:\Software\Policies\Microsoft\Edge\WebView2\ChannelSearchKind'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Set value name to the Application User Model ID or the executable file name. You can use the "*" wildcard as value name to apply to all applications.
# 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 } }
$items = @{
'<nom1>' = '<valeur1>'
'<nom2>' = '<valeur2>'
} # Remplacez les valeurs par les vôtres
$items.GetEnumerator() | ForEach-Object { Set-ItemProperty -Path $k -Name $_.Key -Value $_.Value -Type String }Désactiver
# Désactiver : msedgewebview2/ChannelSearchKind
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : msedgewebview2/ChannelSearchKind
$k = 'HKLM:\Software\Policies\Microsoft\Edge\WebView2\ChannelSearchKind'
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 |
|---|---|---|---|---|
| Set value name to the Application User Model ID or the executable file name. You can use the "*" wildcard as value name to apply to all applications.ChannelSearchKindDesc | Liste (tableau)list | Software\Policies\Microsoft\Edge\WebView2\ChannelSearchKindPaires nom = valeur | 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.