Customize user agent string
Personnaliser la chaîne de l’agent utilisateur
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").
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 AgentHKEY_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 StringDisable
# 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 SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Enter IE Version StringEntrer la chaîne de version d’Internet ExplorerEnterIEVersionPrompt | Text boxtext | Version | REG_SZ | Required |