Enable enhanced shell experience for RemoteApp
Activer l’expérience d’interpréteur de commandes améliorée pour RemoteApp
Explanation
This policy setting enables an enhanced shell experience for RemoteApp sessions, offering support for default file associations, Run/RunOnce registry keys, and more. This policy setting applies only to RemoteApp sessions and does not apply to Remote Desktop sessions.
If you enable or do not configure this policy setting, RemoteApp sessions on RD Session Host servers will have the enhanced shell experience.
If you disable this policy setting, RemoteApp sessions will not have the enhanced shell experience and will use the legacy shell behavior. This may be needed if compatibility issues arise in published RemoteApp programs.
Ce paramètre de stratégie permet une expérience de shell améliorée pour les sessions RemoteApp, offrant la prise en charge des associations de fichiers par défaut, des clés de Registre Run/RunOnce, etc. Ce paramètre de stratégie s’applique uniquement aux sessions RemoteApp et ne s’applique pas aux sessions Bureau à distance.
Si vous activez ou ne configurez pas ce paramètre de stratégie, les sessions RemoteApp sur les serveurs hôtes de session Bureau à distance bénéficient de l’expérience shell améliorée.
Si vous désactivez ce paramètre de stratégie, les sessions RemoteApp n’auront pas l’expérience d’interpréteur de commandes améliorée et utiliseront le comportement hérité de l’interpréteur de commandes. Cela peut être nécessaire si des problèmes de compatibilité surviennent dans les programmes RemoteApp publiés.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services- Value name
UseShellAppRuntimeRemoteApp
| 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/TS_SERVER_REMOTEAPP_USE_SHELLAPPRUNTIME
$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 'UseShellAppRuntimeRemoteApp' -Value 1 -Type DWordDisable
# Disable: TerminalServer/TS_SERVER_REMOTEAPP_USE_SHELLAPPRUNTIME
$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 'UseShellAppRuntimeRemoteApp' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": TerminalServer/TS_SERVER_REMOTEAPP_USE_SHELLAPPRUNTIME
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'UseShellAppRuntimeRemoteApp' -ErrorAction SilentlyContinue