Open in the explorer

Always use classic logon

Toujours utiliser l’ouverture de session classique

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Logon FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Ouverture de session
Supported on
Windows Server 2003 and versions of Windows from Windows XP Professional through Windows 7. FR: Windows Server 2003 et les versions de Windows à partir de Windows XP Professionnel jusqu'à Windows 7.
ADMX file
Logon.admx
Internal name
Logon/LogonType

Explanation

This policy is not available in this version of Windows.

French text from Windows 11 26H2

Cette stratégie n'est pas disponible dans cette version de Windows.

Registry

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
Value name
LogonType
StateValue written
EnabledREG_DWORD = 0
DisabledREG_DWORD = 1

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: Logon/LogonType
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'LogonType' -Value 0 -Type DWord

Disable

# Disable: Logon/LogonType
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'LogonType' -Value 1 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Logon/LogonType
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
Remove-ItemProperty -Path $k -Name 'LogonType' -ErrorAction SilentlyContinue

Availability