Allow only bitmapped wallpaper
N’autoriser que les papiers peints au format bmp
Explanation
Permits only bitmap images for wallpaper. This setting limits the desktop background ("wallpaper") to bitmap (.bmp) files. If users select files with other image formats, such as JPEG, GIF, PNG, or HTML, through the Browse button on the Desktop tab, the wallpaper does not load. Files that are autoconverted to a .bmp format, such as JPEG, GIF, and PNG, can be set as Wallpaper by right-clicking the image and selecting "Set as Wallpaper".
Also, see the "Desktop Wallpaper" and the "Prevent changing wallpaper" (in User Configuration\Administrative Templates\Control Panel\Display) settings.
N’autorise que les images au format bitmap en tant que papier peint. Ce paramètre limite les papiers peints du Bureau à des fichiers au format bitmap (.bmp). Si les utilisateurs sélectionnent des fichiers ayant d’autres formats d’image, tels que JPEG, GIF, PNG ou HTML, à l’aide du bouton Parcourir de l’onglet Bureau, le papier peint ne se charge pas. Vous pouvez définir en tant que papier peint des fichiers convertis automatiquement à un format .bmp, tels que JPEG, GIF et PNG, en cliquant avec le bouton droit sur l’image et en sélectionnant « Définir en tant que papier peint du Bureau ».
Consultez également les paramètres « Papier peint du Bureau » et « Empêcher le changement de papier peint » (dans Configuration utilisateur\Modèles d’administration\Panneau de configuration\Affichage).
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop- Value name
NoHTMLWallPaper
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not defined in the ADMX |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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: Desktop/sz_DWP_NoHTMLPaper
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoHTMLWallPaper' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: Desktop/sz_DWP_NoHTMLPaper
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoHTMLWallPaper' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Desktop/sz_DWP_NoHTMLPaper
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop'
Remove-ItemProperty -Path $k -Name 'NoHTMLWallPaper' -ErrorAction SilentlyContinue