Turn off automatic image resizing
Désactiver le redimensionnement automatique de l’image
Explanation
This policy setting specifies that you want Internet Explorer to automatically resize large images so that they fit in the browser window.
If you enable this policy setting, automatic image resizing is turned off. The user cannot change this setting.
If you disable this policy setting, automatic image resizing is turned on. The user cannot change this setting.
If you do not configure this policy setting, the user can turn on or off automatic image resizing.
Ce paramètre de stratégie spécifie si Internet Explorer redimensionne automatiquement les grandes images pour qu’elles rentrent dans la fenêtre du navigateur.
Si vous activez ce paramètre de stratégie, le redimensionnement automatique de l’image est désactivé. L’utilisateur ne peut pas modifier ce paramètre.
Si vous désactivez ce paramètre de stratégie, le redimensionnement automatique de l’image est activé. L’utilisateur ne peut pas modifier ce paramètre.
Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut activer ou désactiver le redimensionnement automatique de l’image.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main- Value name
Enable AutoImageResize
| State | Value written |
|---|---|
| Enabled | REG_SZ = no |
| Disabled | REG_SZ = yes |
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.
Enable
# Enable: inetres/RestrictAutoImageResize
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Enable AutoImageResize' -Value 'no' -Type StringDisable
# Disable: inetres/RestrictAutoImageResize
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Enable AutoImageResize' -Value 'yes' -Type StringRevert to "Not configured"
# Revert to "Not configured": inetres/RestrictAutoImageResize
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main'
Remove-ItemProperty -Path $k -Name 'Enable AutoImageResize' -ErrorAction SilentlyContinue