Definir limite de tempo para o logoff de sessões do RemoteApp: valor do Registro RemoteAppLogoffTimeLimit (HKCU Terminal Services)UsuárioHKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

ID da política
TS_SESSIONS_RemoteApp_End_Timeout
Escopo
Configuração do Usuário
Compatível com
Pelo menos Windows Server 2008
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Componentes do Windows › Serviços de Área de Trabalho Remota › Host de Sessão da Área de Trabalho Remota › Limites de Tempo de Sessão

Registro

RemoteAppLogoffTimeLimit

REG_SZUsuário
Valor desabilitado
0
Aplicar com .reg · CMD · PowerShell
Desabilitada
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services]
"RemoteAppLogoffTimeLimit"="0"
CMD · Desabilitada
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_SZ /d 0 /f
PowerShell · Desabilitada
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_DWORDUsuário
Valor habilitado
Depende do valor da opção
Elemento
Espera de logoff da sessão do RemoteApp:
Opções
ItemValor armazenado
Imediatamente0
1 minuto60000
5 minutos300000
10 minutos600000
15 minutos900000
30 minutos1800000
1 hora3600000
2 horas7200000
3 horas10800000
6 horas21600000
8 horas28800000
12 horas43200000
16 horas57600000
18 horas64800000
1 dia86400000
2 dias172800000
3 dias259200000
4 dias345600000
5 dias432000000
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opções (use apenas uma)
; Imediatamente
"RemoteAppLogoffTimeLimit"=dword:00000000
; 1 minuto
"RemoteAppLogoffTimeLimit"=dword:0000ea60
; 5 minutos
"RemoteAppLogoffTimeLimit"=dword:000493e0
; 10 minutos
"RemoteAppLogoffTimeLimit"=dword:000927c0
; 15 minutos
"RemoteAppLogoffTimeLimit"=dword:000dbba0
; 30 minutos
"RemoteAppLogoffTimeLimit"=dword:001b7740
; 1 hora
"RemoteAppLogoffTimeLimit"=dword:0036ee80
; 2 horas
"RemoteAppLogoffTimeLimit"=dword:006ddd00
; 3 horas
"RemoteAppLogoffTimeLimit"=dword:00a4cb80
; 6 horas
"RemoteAppLogoffTimeLimit"=dword:01499700
; 8 horas
"RemoteAppLogoffTimeLimit"=dword:01b77400
; 12 horas
"RemoteAppLogoffTimeLimit"=dword:02932e00
; 16 horas
"RemoteAppLogoffTimeLimit"=dword:036ee800
; 18 horas
"RemoteAppLogoffTimeLimit"=dword:03dcc500
; 1 dia
"RemoteAppLogoffTimeLimit"=dword:05265c00
; 2 dias
"RemoteAppLogoffTimeLimit"=dword:0a4cb800
; 3 dias
"RemoteAppLogoffTimeLimit"=dword:0f731400
; 4 dias
"RemoteAppLogoffTimeLimit"=dword:14997000
; 5 dias
"RemoteAppLogoffTimeLimit"=dword:19bfcc00
CMD
:: Opções (use apenas uma)

:: Imediatamente
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 0 /f
:: 1 minuto
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 60000 /f
:: 5 minutos
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 300000 /f
:: 10 minutos
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 600000 /f
:: 15 minutos
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 900000 /f
:: 30 minutos
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 1800000 /f
:: 1 hora
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 3600000 /f
:: 2 horas
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 7200000 /f
:: 3 horas
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 10800000 /f
:: 6 horas
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 21600000 /f
:: 8 horas
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 28800000 /f
:: 12 horas
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 43200000 /f
:: 16 horas
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 57600000 /f
:: 18 horas
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 64800000 /f
:: 1 dia
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 86400000 /f
:: 2 dias
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 172800000 /f
:: 3 dias
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 259200000 /f
:: 4 dias
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 345600000 /f
:: 5 dias
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "RemoteAppLogoffTimeLimit" /t REG_DWORD /d 432000000 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null

# Opções (use apenas uma)
# Imediatamente
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 0 -Force | Out-Null
# 1 minuto
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 60000 -Force | Out-Null
# 5 minutos
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 300000 -Force | Out-Null
# 10 minutos
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 600000 -Force | Out-Null
# 15 minutos
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 900000 -Force | Out-Null
# 30 minutos
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 1800000 -Force | Out-Null
# 1 hora
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 3600000 -Force | Out-Null
# 2 horas
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 7200000 -Force | Out-Null
# 3 horas
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 10800000 -Force | Out-Null
# 6 horas
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 21600000 -Force | Out-Null
# 8 horas
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 28800000 -Force | Out-Null
# 12 horas
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 43200000 -Force | Out-Null
# 16 horas
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 57600000 -Force | Out-Null
# 18 horas
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 64800000 -Force | Out-Null
# 1 dia
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 86400000 -Force | Out-Null
# 2 dias
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 172800000 -Force | Out-Null
# 3 dias
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 259200000 -Force | Out-Null
# 4 dias
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 345600000 -Force | Out-Null
# 5 dias
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'RemoteAppLogoffTimeLimit' -PropertyType DWord -Value 432000000 -Force | Out-Null