Open in the explorer

Always show desktop on connection

Toujours afficher le bureau à la connexion

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Remote Session Environment FR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Environnement de session à distance
Supported on
At least Windows Server 2008 FR: Au minimum Windows Server 2008
ADMX file
terminalserver-server.admx
Internal name
terminalserver-server/TS_TURNOFF_SINGLEAPP

Explanation

This policy setting allows you to specify whether the desktop is always displayed after a client connects to a remote computer or whether an initial program can run. It can require that the desktop be displayed after a client connects to a remote computer, even if an initial program is already specified in the default user profile, Remote Desktop Connection, or through Group Policy.

If you enable this policy setting, the desktop is always displayed when a client connects to a remote computer. This policy setting overrides any initial program policy settings.

If you disable or do not configure this policy setting, an initial program can be specified that runs on the remote computer after the client connects to the remote computer. If an initial program is not specified, the desktop is always displayed on the remote computer after the client connects to the remote computer.

Note: If this policy setting is enabled, then the "Start a program on connection" policy setting is ignored.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de spécifier, lors de la connexion d’un client à un ordinateur distant, soit l’affichage systématique du Bureau, soit le démarrage initial d’un programme. Il peut imposer l’affichage du Bureau lors de la connexion d’un client à un ordinateur distant, même si le profil d’utilisateur par défaut, les paramètres de Connexion Bureau à distance ou la stratégie de groupe prévoient déjà un programme de démarrage initial.

Si vous activez ce paramètre de stratégie, le Bureau s’affiche toujours lors de la connexion d’un client à un ordinateur distant. Ce paramètre de stratégie remplace tout autre paramètre de stratégie relatif au démarrage du programme initial.

La désactivation ou la non-configuration de ce paramètre de stratégie permet la désignation d’un programme de démarrage initial à exécuter sur l’ordinateur distant à la connexion du client à ce dernier. Faute de désignation d’un programme de démarrage initial, le bureau de l’ordinateur distant s’affiche systématiquement une fois le client connecté à celui-ci.

Remarque : si ce paramètre de stratégie est activé, le paramètre de stratégie « Démarrer un programme à la connexion » est ignoré.

Registry

HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
fTurnOffSingleAppMode
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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_TURNOFF_SINGLEAPP
$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 'fTurnOffSingleAppMode' -Value 1 -Type DWord

Disable

# Disable: terminalserver-server/TS_TURNOFF_SINGLEAPP
$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 'fTurnOffSingleAppMode' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": terminalserver-server/TS_TURNOFF_SINGLEAPP
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'fTurnOffSingleAppMode' -ErrorAction SilentlyContinue

Availability