Open in the explorer

Customize user agent string

Personnaliser la chaîne de l’agent utilisateur

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer User Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Internet ExplorerFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer
Supported on
At least Internet Explorer 7.0 FR: Au moins Internet Explorer 7.0
ADMX file
inetres.admx
Internal name
inetres/Customized_UserAgent_String

Explanation

This policy setting allows you to customize the Internet Explorer version string as reported to web servers in the HTTP User Agent header.

If you enable this policy setting, Internet Explorer sends the specified custom string in the version portion of the User Agent header.

If you disable or do not configure this policy setting, Internet Explorer sends the current Internet Explorer version in the User Agent header (for example, "MSIE 7.0").

French text from Windows 11 26H2

Ce paramètre de stratégie permet de personnaliser la chaîne de version d’Internet Explorer transmise aux serveurs Web dans l’en-tête de l’agent utilisateur HTTP.

Si vous activez ce paramètre de stratégie, Internet Explorer envoie la chaîne personnalisée spécifiée dans la partie de l’en-tête de l’agent utilisateur relative à la version.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, Internet Explorer envoie la version d’Internet Explorer actuelle dans l’en-tête de l’agent utilisateur, par exemple « MSIE 7.0 ».

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\User Agent
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\User Agent
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.

Computer (HKLM)

Enable

# Enable: inetres/Customized_UserAgent_String
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\User Agent'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Enter IE Version String
Set-ItemProperty -Path $k -Name 'Version' -Value '<value>' -Type String

Disable

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

Revert to "Not configured"

# Revert to "Not configured": inetres/Customized_UserAgent_String
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\User Agent'
Remove-ItemProperty -Path $k -Name 'Version' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Enter IE Version StringEntrer la chaîne de version d’Internet ExplorerEnterIEVersionPromptText boxtextVersionREG_SZ
Required

Availability