Remove remote desktop wallpaper
Supprimer le papier peint du Bureau à distance
Explanation
This policy setting allows you to specify whether desktop wallpaper is displayed to clients when they are connected to a remote server using RDP.
You can use this setting to enforce the removal of wallpaper during a Remote Desktop Services session.
If you enable this policy setting, wallpaper is not displayed in a Remote Desktop Services session.
If you disable this policy setting, wallpaper is displayed in a Remote Desktop Services session, depending on the client configuration.
If you do not configure this policy setting, Windows Vista displays wallpaper to remote clients connecting through Remote Desktop, depending on the client configuration (see the Experience tab in the Remote Desktop Connection options for more information). Servers running Windows Server 2008 do not display wallpaper by default to Remote Desktop Services sessions.
Ce paramètre de stratégie vous permet de spécifier si le papier peint du Bureau s’affiche pour les clients qui sont connectés à un serveur distant à l’aide du protocole RDP.
Vous pouvez utiliser ce paramètre pour appliquer la suppression du papier peint lors d’une session à distance.
Si vous activez ce paramètre de stratégie, le papier peint ne s’affiche pas pour un client des services Terminal Server.
Si vous désactivez ce paramètre de stratégie, le papier peint s’affiche pour un client des services Terminal Server, en fonction de la configuration du client.
Si vous ne configurez pas ce paramètre de stratégie, Windows Vista affiche le papier peint pour les clients distants qui se connectent par l’intermédiaire du Bureau à distance, en fonction de la configuration du client (pour plus d’informations, voir l’onglet Avancé dans les options de Connexion Bureau à distance). Les serveurs qui exécutent Windows Server 2008 n’affichent pas le papier peint par défaut pour les sessions à distance.
Registry
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services- Value name
fNoRemoteDesktopWallpaper
| 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.
Enable
# Enable: terminalserver-server/TS_DISABLE_REMOTE_DESKTOP_WALLPAPER
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'fNoRemoteDesktopWallpaper' -Value 1 -Type DWordDisable
# Disable: terminalserver-server/TS_DISABLE_REMOTE_DESKTOP_WALLPAPER
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'fNoRemoteDesktopWallpaper' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": terminalserver-server/TS_DISABLE_REMOTE_DESKTOP_WALLPAPER
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'fNoRemoteDesktopWallpaper' -ErrorAction SilentlyContinue