Ouvrir dans l'explorateur

Automatically log off users after inactive interval

Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Windows App EN : Computer Configuration › Policies › Administrative Templates › Windows App
Pris en charge sur
Windows 10 or later
Fichier ADMX
windowsapp.admx
Nom interne
windowsapp/WINAPP_AutoLogoff

Explication

Automatically signs out of the Windows App after a period of inactivity. This does not sign the user out of any remote session.

If you enable this policy, specify the inactivity timeout in minutes. After the specified time of inactivity, the Windows App will automatically sign out.

If you disable or do not configure this policy, the Windows App will remain signed in regardless of inactivity.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\WindowsApp
Nom de la valeur
AutoLogoffEnable
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : windowsapp/WINAPP_AutoLogoff
$k = 'HKLM:\SOFTWARE\Policies\WindowsApp'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AutoLogoffEnable' -Value 1 -Type DWord
# Inactivity timeout (minutes)
Set-ItemProperty -Path $k -Name 'AutoLogoffTimeInterval' -Value 1 -Type DWord  # minimum 1

Désactiver

# Désactiver : windowsapp/WINAPP_AutoLogoff
$k = 'HKLM:\SOFTWARE\Policies\WindowsApp'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AutoLogoffEnable' -Value 0 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : windowsapp/WINAPP_AutoLogoff
$k = 'HKLM:\SOFTWARE\Policies\WindowsApp'
Remove-ItemProperty -Path $k -Name 'AutoLogoffEnable' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AutoLogoffTimeInterval' -ErrorAction SilentlyContinue

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Inactivity timeout (minutes):WINAPP_AutoLogoffTimeoutZone numériquedecimalAutoLogoffTimeIntervalREG_DWORD
Obligatoire · Min : 1

Application

Windows App (Microsoft) — modèles de novembre 2026

Modèles de novembre 2026 issus de pl4nty/web-admx-tool.