Interactive logon: Number of previous logons to cache (in case domain controller is not available): registry value CachedLogonsCountComputerHKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
- Category
- Security Settings › Local Policies › Security Options
- Scope
- Computer Configuration
- Source
- Windows 11 (version 26H2 · 26300.9457)
Registry
CachedLogonsCount
REG_SZComputer
- Enabled value
- Depends on the option value
- Element
- Interactive logon: Number of previous logons to cache (in case domain controller is not available)
- Value type
- REG_SZ
- Store as text
- true
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
"CachedLogonsCount"="<enter value>"
CMD
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "CachedLogonsCount" /t REG_SZ /d "<enter value>" /f
PowerShell
New-Item -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'CachedLogonsCount' -PropertyType String -Value '<enter value>' -Force | Out-Null