Turn on printing of background colors and images
Activer l’impression des couleurs et des images d’arrière-plan
Explanation
This policy setting specifies whether Internet Explorer prints background colors and images when the user prints a webpage. Including background colors and images might reduce the speed at which a page is printed and the quality of the printing, depending on the capabilities of the printer.
If you enable this policy setting, the printing of background colors and images is turned on. The user cannot turn it off.
If you disable this policy setting, the printing of background colors and images is turned off. The user cannot turn it on.
If you do not configure this policy setting, the user can turn on or turn off the printing of background colors and images.
Ce paramètre de stratégie spécifie si Internet Explorer imprime les couleurs et les images d’arrière-plan lorsque l’utilisateur imprime une page Web. L’inclusion des couleurs et des images d’arrière-plan peut réduire la vitesse et la qualité d’impression de la page, selon les capacités de votre imprimante.
Si vous activez ce paramètre de stratégie, l’impression des couleurs et des images d’arrière-plan est activée. L’utilisateur ne peut pas la désactiver.
Si vous désactivez ce paramètre de stratégie, l’impression des couleurs et des images d’arrière-plan est désactivée. L’utilisateur ne peut pas la réactiver.
Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut activer ou désactiver l’impression des couleurs et des images d’arrière-plan.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main- Value name
Print_Background
| State | Value written |
|---|---|
| Enabled | REG_SZ = yes |
| Disabled | REG_SZ = no |
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/BackgroundColors
$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 'Print_Background' -Value 'yes' -Type StringDisable
# Disable: inetres/BackgroundColors
$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 'Print_Background' -Value 'no' -Type StringRevert to "Not configured"
# Revert to "Not configured": inetres/BackgroundColors
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main'
Remove-ItemProperty -Path $k -Name 'Print_Background' -ErrorAction SilentlyContinue