Desktop Wallpaper
Papier peint du Bureau
Explanation
Specifies the desktop background ("wallpaper") displayed on all users' desktops.
This setting lets you specify the wallpaper on users' desktops and prevents users from changing the image or its presentation. The wallpaper you specify can be stored in a bitmap (*.bmp) or JPEG (*.jpg) file.
To use this setting, type the fully qualified path and name of the file that stores the wallpaper image. You can type a local path, such as C:\Windows\web\wallpaper\home.jpg or a UNC path, such as \\Server\Share\Corp.jpg. If the specified file is not available when the user logs on, no wallpaper is displayed. Users cannot specify alternative wallpaper. You can also use this setting to specify that the wallpaper image be centered, tiled, or stretched. Users cannot change this specification.
If you disable this setting or do not configure it, no wallpaper is displayed. However, users can select the wallpaper of their choice.
Also, see the "Allow only bitmapped wallpaper" in the same location, and the "Prevent changing wallpaper" setting in User Configuration\Administrative Templates\Control Panel.
Note: This setting does not apply to remote desktop server sessions.
Spécifie l’image d’arrière-plan (le « papier peint ») affichée sur le Bureau des utilisateurs.
Ce paramètre vous permet de spécifier le papier peint du Bureau des utilisateurs et empêche ces derniers de modifier l’image ou sa présentation. Le papier peint spécifié peut être enregistré dans un fichier de type bitmap (*.bmp) ou JPEG (*.jpg).
Pour utiliser ce paramètre, entrez le chemin d’accès complet et le nom du fichier contenant le papier peint. Vous pouvez taper un chemin d’accès local, tel que C:\Windows\web\wallpaper\accueil.jpg ou un chemin d’accès UNC, tel que \\Serveur\Partage\Logo.jpg. Si le fichier spécifié n’est pas disponible lorsque l’utilisateur ouvre sa session, aucun papier peint n’est affiché. Les utilisateurs ne peuvent pas spécifier un autre papier peint. Vous pouvez également utiliser ce paramètre afin de spécifier si l’image du papier peint doit être centrée, en mosaïque ou étirée. Les utilisateurs ne peuvent pas modifier cette spécification.
Si vous désactivez ce paramètre ou ne le configurez pas, aucun papier peint n’est affiché. Les utilisateurs peuvent toutefois sélectionner le papier peint de leur choix.
Consultez également le paramètre N’autoriser que les papiers peints au format bmp au même endroit et le paramètre Empêcher le changement de papier peint dans Configuration utilisateur\Modèles d’administration\Panneau de configuration.
Remarque : ce paramètre ne s’applique pas aux sessions de serveur Bureau à distance.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System- 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.
Enable
# Enable: Desktop/Wallpaper
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Wallpaper Name
Set-ItemProperty -Path $k -Name 'Wallpaper' -Value '<value>' -Type String
# Wallpaper Style
# Possible options:
# Center = 0
# Tile = 1
# Stretch = 2
# Fit = 3
# Fill = 4
# Span = 5
Set-ItemProperty -Path $k -Name 'WallpaperStyle' -Value '0' -Type StringDisable
# Disable: Desktop/Wallpaper
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Desktop/Wallpaper
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
Remove-ItemProperty -Path $k -Name 'Wallpaper' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'WallpaperStyle' -ErrorAction SilentlyContinueOptions (2)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Wallpaper Name:Nom du papier peint :WallpaperName | Text boxtext | Wallpaper | REG_SZ | Required | ||||||||||||||
| Wallpaper Style:Style du papier peint :WallpaperStyle | Drop-down listenum | WallpaperStyle | REG_SZ | Required · Default choice (UI): #0
|