Turn on Internet Explorer 7 Standards Mode
Activer le mode standard d’Internet Explorer 7
Explanation
This policy setting allows you to turn on Internet Explorer 7 Standards Mode. Compatibility View determines how Internet Explorer identifies itself to a web server and determines whether content is rendered in Internet Explorer 7 Standards Mode or the Standards Mode available in the latest version of Internet Explorer.
If you enable this policy setting, Internet Explorer uses an Internet Explorer 7 user agent string (with an additional string appended). Additionally, all Standards Mode webpages appear in Internet Explorer 7 Standards Mode. This option results in the greatest compatibility with existing webpages, but newer content written to common Internet standards may be displayed incorrectly.
If you disable this policy setting, Internet Explorer uses a current user agent string. Additionally, all Standards Mode webpages appear in the Standards Mode available in the latest version of Internet Explorer. This option matches the default behavior of Internet Explorer.
If you do not configure this policy setting, the user can turn on and turn off Internet Explorer 7 Standards Mode.
Ce paramètre de stratégie vous permet d’activer le mode standard d’Internet Explorer 7. L’affichage de compatibilité détermine la manière dont Internet Explorer s’identifie pour un serveur Web et si le contenu est rendu dans le mode standard d’Internet Explorer 7 ou dans le mode standard disponible dans la dernière version d’Internet Explorer.
Si vous activez ce paramètre de stratégie, Internet Explorer utilise la chaîne d’agent utilisateur Internet Explorer 7 (avec une chaîne supplémentaire modifiée). En outre, toutes les pages Web en mode standard apparaissent dans le mode standard d’Internet Explorer 7. Cette option permet d’obtenir une plus grande compatibilité avec les pages Web existantes ; cependant, le nouveau contenu écrit pour les normes Internet courantes risque de s’afficher de manière incorrecte.
Si vous désactivez ce paramètre de stratégie, Internet Explorer utilise une chaîne d’un agent utilisateur actuel. En outre, toutes les pages Web en mode standard apparaissent en mode standard dans la dernière version d’Internet Explorer. Cette option correspond au comportement par défaut d’Internet Explorer.
Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut activer ou désactiver le mode standard d’Internet Explorer 7.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\BrowserEmulationHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\BrowserEmulation- Value name
AllSitesCompatibilityMode
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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/CompatView_AllSites
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\BrowserEmulation'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllSitesCompatibilityMode' -Value 1 -Type DWordDisable
# Disable: inetres/CompatView_AllSites
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\BrowserEmulation'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllSitesCompatibilityMode' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/CompatView_AllSites
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\BrowserEmulation'
Remove-ItemProperty -Path $k -Name 'AllSitesCompatibilityMode' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"