Open in the explorer

Remove Logoff

Supprimer la fermeture de session

Type
User
GPO path
User Configuration › Policies › Administrative Templates › System › Ctrl+Alt+Del Options FR: Configuration utilisateur › Stratégies › Modèles d'administration › Système › Options Ctrl+Alt+Suppr
Supported on
At least Windows 2000 FR: Au minimum Windows 2000
ADMX file
CtrlAltDel.admx
Internal name
CtrlAltDel/NoLogoff

Explanation

This policy setting disables or removes all menu items and buttons that log the user off the system.

If you enable this policy setting, users will not see the Log off menu item when they press Ctrl+Alt+Del. This will prevent them from logging off unless they restart or shutdown the computer, or clicking Log off from the Start menu.

Also, see the 'Remove Logoff on the Start Menu' policy setting.

If you disable or do not configure this policy setting, users can see and select the Log off menu item when they press Ctrl+Alt+Del.

French text from Windows 11 26H2

Ce paramètre de stratégie désactive ou supprime tous les éléments de menu et les boutons qui ferment la session de l’utilisateur sur le système.

Si vous activez ce paramètre de stratégie, les utilisateurs ne voient pas l’élément de menu Fermer la session en appuyant sur les touches Ctrl+Alt+Suppr. Cela les empêche de fermer une session, à moins qu’ils ne redémarrent ou ne ferment le système ou alors qu’ils ne cliquent sur Fermer la session dans le menu Démarrer.

Consultez également le paramètre de stratégie « Supprimer la fermeture de session dans le menu Démarrer ».

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent sélectionner l’élément de menu Fermer la session disponible lorsqu’ils appuient sur Ctrl+Alt+Suppr.

Registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value name
NoLogoff
StateValue written
Enablednot defined in the ADMX
Disablednot defined in the ADMX

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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: CtrlAltDel/NoLogoff
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoLogoff' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: CtrlAltDel/NoLogoff
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoLogoff' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": CtrlAltDel/NoLogoff
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoLogoff' -ErrorAction SilentlyContinue

Availability