Open in the explorer

Always show desktop on connection

Toujours afficher le bureau lors de la connexion

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Remote Session Environment FR: Configuration ordinateur › 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 2003 with Service Pack 1 FR: Au minimum Windows Server 2003 avec Service Pack 1
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_TURNOFF_SINGLEAPP

Explanation

This policy setting determines whether the desktop is always displayed after a client connects to a remote computer or an initial program can run. It can be used to 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, Remote Desktop Services client, 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 permet de choisir à 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 servir à imposer l’affichage du bureau à la connexion d’un client à un ordinateur distant, même si le profil d’utilisateur par défaut, les paramètres de connexion à un bureau distant, le client des services 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.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, un programme initial peut être spécifié pour s’exécuter sur l’ordinateur distant après la connexion du client à ce dernier. Si aucun programme initial n’est spécifié, le Bureau est toujours affiché sur l’ordinateur distant après la connexion du client à cet ordinateur.

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_LOCAL_MACHINE\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/TS_TURNOFF_SINGLEAPP
$k = 'HKLM:\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/TS_TURNOFF_SINGLEAPP
$k = 'HKLM:\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/TS_TURNOFF_SINGLEAPP
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'fTurnOffSingleAppMode' -ErrorAction SilentlyContinue

Availability