Définir la limite de temps pour la fermeture de sessions RemoteApp : valeur de Registre RemoteAppLogoffTimeLimit (HKCU Terminal Services)UtilisateurHKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

ID de stratégie
TS_SESSIONS_RemoteApp_End_Timeout
Étendue
Configuration utilisateur
Pris en charge sur
Au minimum Windows Server 2008
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Délais d'expiration des sessions

Registre

RemoteAppLogoffTimeLimit

REG_SZUtilisateur
Valeur si désactivée
0
Appliquer avec .reg · CMD · PowerShell
Désactivé
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services]
"RemoteAppLogoffTimeLimit"="0"
CMD · Désactivé
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_SZ /d 0 /f
PowerShell · Désactivé
New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType String -Value '0' -Force | Out-Null

RemoteAppLogoffTimeLimit

REG_DWORDUtilisateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Délai de fermeture de session RemoteApp :
Options
EntréeValeur stockée
Immédiatement0
1 minute60000
5 minutes300000
10 minutes600000
15 minutes900000
30 minutes1800000
1 heure3600000
2 heures7200000
3 heures10800000
6 heures21600000
8 heures28800000
12 heures43200000
16 heures57600000
18 heures64800000
1 jour86400000
2 jours172800000
3 jours259200000
4 jours345600000
5 jours432000000
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services]

; Options (en utiliser une seule)
; Immédiatement
"RemoteAppLogoffTimeLimit"=dword:00000000
; 1 minute
"RemoteAppLogoffTimeLimit"=dword:0000ea60
; 5 minutes
"RemoteAppLogoffTimeLimit"=dword:000493e0
; 10 minutes
"RemoteAppLogoffTimeLimit"=dword:000927c0
; 15 minutes
"RemoteAppLogoffTimeLimit"=dword:000dbba0
; 30 minutes
"RemoteAppLogoffTimeLimit"=dword:001b7740
; 1 heure
"RemoteAppLogoffTimeLimit"=dword:0036ee80
; 2 heures
"RemoteAppLogoffTimeLimit"=dword:006ddd00
; 3 heures
"RemoteAppLogoffTimeLimit"=dword:00a4cb80
; 6 heures
"RemoteAppLogoffTimeLimit"=dword:01499700
; 8 heures
"RemoteAppLogoffTimeLimit"=dword:01b77400
; 12 heures
"RemoteAppLogoffTimeLimit"=dword:02932e00
; 16 heures
"RemoteAppLogoffTimeLimit"=dword:036ee800
; 18 heures
"RemoteAppLogoffTimeLimit"=dword:03dcc500
; 1 jour
"RemoteAppLogoffTimeLimit"=dword:05265c00
; 2 jours
"RemoteAppLogoffTimeLimit"=dword:0a4cb800
; 3 jours
"RemoteAppLogoffTimeLimit"=dword:0f731400
; 4 jours
"RemoteAppLogoffTimeLimit"=dword:14997000
; 5 jours
"RemoteAppLogoffTimeLimit"=dword:19bfcc00
CMD
:: Options (en utiliser une seule)

:: Immédiatement
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 0 /f
:: 1 minute
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 60000 /f
:: 5 minutes
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 300000 /f
:: 10 minutes
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 600000 /f
:: 15 minutes
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 900000 /f
:: 30 minutes
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 1800000 /f
:: 1 heure
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 3600000 /f
:: 2 heures
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 7200000 /f
:: 3 heures
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 10800000 /f
:: 6 heures
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 21600000 /f
:: 8 heures
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 28800000 /f
:: 12 heures
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 43200000 /f
:: 16 heures
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 57600000 /f
:: 18 heures
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 64800000 /f
:: 1 jour
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 86400000 /f
:: 2 jours
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 172800000 /f
:: 3 jours
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 259200000 /f
:: 4 jours
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 345600000 /f
:: 5 jours
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 432000000 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null

# Options (en utiliser une seule)
# Immédiatement
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 0 -Force | Out-Null
# 1 minute
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 60000 -Force | Out-Null
# 5 minutes
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 300000 -Force | Out-Null
# 10 minutes
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 600000 -Force | Out-Null
# 15 minutes
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 900000 -Force | Out-Null
# 30 minutes
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 1800000 -Force | Out-Null
# 1 heure
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 3600000 -Force | Out-Null
# 2 heures
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 7200000 -Force | Out-Null
# 3 heures
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 10800000 -Force | Out-Null
# 6 heures
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 21600000 -Force | Out-Null
# 8 heures
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 28800000 -Force | Out-Null
# 12 heures
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 43200000 -Force | Out-Null
# 16 heures
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 57600000 -Force | Out-Null
# 18 heures
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 64800000 -Force | Out-Null
# 1 jour
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 86400000 -Force | Out-Null
# 2 jours
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 172800000 -Force | Out-Null
# 3 jours
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 259200000 -Force | Out-Null
# 4 jours
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 345600000 -Force | Out-Null
# 5 jours
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 432000000 -Force | Out-Null