Enable or disable freezing the User-Agent string at major version 99 (obsolete)
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
OBSOLETE: This policy is obsolete and doesn't work after Microsoft Edge 117.
This policy was removed in Microsoft Edge 118 and is ignored if configured.
This policy controls whether the User-Agent string major
version should be frozen at 99.
The User-Agent request header lets websites identify the application,
operating system, vendor, and/or version of the requesting user agent.
Some websites make assumptions about how this header is formatted and may
encounter issues with version strings that include three digits in the
major position (for example, 100.0.0.0).
If you set this policy to 'Default' or don't configure it, then it defaults to
browser settings for the User-Agent string major version.
If you set this policy to 'ForceEnabled', the User-Agent string will always report the
major version as 99 and include the browser's major version in the minor
position. For example, browser version 101.0.0.0 would send a User-Agent
request header that reports version 99.101.0.0.
If you set this policy to 'ForceDisabled', the User-Agent string won't freeze the
major version.
This policy is temporary and will be deprecated in the future. If this policy and
User-Agent Reduction are
both enabled, the User-Agent version string will always be 99.0.0.0.
Policy options mapping:
* Default (0) = Default to browser settings for User-Agent string version.
* ForceDisabled (1) = The User-Agent string won't freeze the major version.
* ForceEnabled (2) = The User-Agent string will freeze the major version as 99 and include the browser's major version in the minor position.
Use the preceding information when configuring this policy.
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/ForceMajorVersionToMinorPositionInUserAgent
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Enable or disable freezing the User-Agent string at major version 99
# Options possibles :
# Default to browser settings for User-Agent string version. = 0
# The User-Agent string won't freeze the major version. = 1
# The User-Agent string will freeze the major version as 99 and include the browser's major version in the minor position. = 2
Set-ItemProperty -Path $k -Name 'ForceMajorVersionToMinorPositionInUserAgent' -Value 0 -Type DWordDésactiver
# Désactiver : msedge/ForceMajorVersionToMinorPositionInUserAgent
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : msedge/ForceMajorVersionToMinorPositionInUserAgent
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
Remove-ItemProperty -Path $k -Name 'ForceMajorVersionToMinorPositionInUserAgent' -ErrorAction SilentlyContinueUtilisateur (HKCU)
Activer
Désactiver
Revenir à « Non configuré »
Options (1)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Enable or disable freezing the User-Agent string at major version 99ForceMajorVersionToMinorPositionInUserAgent | Liste déroulanteenum | ForceMajorVersionToMinorPositionInUserAgent | REG_DWORD |
|
Application
Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — modèles de novembre 2026
Modèles officiels téléchargés le 12 novembre 2026.