Policy
Specify maximum log file size
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows10, Windows10RT, Windows11, Windows7, Windows8, Windows81, WindowsRT, WindowsRT81, WindowsServer2003, WindowsServer2008, WindowsServer2012, WindowsServer2012R2, WindowsServer2016, WindowsVista
This policy setting specifies the maximum size in bytes of the log file netlogon.log in the directory %windir%\debug when logging is enabled. By default, the maximum size of the log file is 20MB. If you enable this policy setting, the maximum size of the log file is set to the specified size. Once this size is reached the log file is saved to netlogon.bak and netlogon.log is truncated. A reasonable value based on available storage should be specified. If you disable or do not configure this policy setting, the default behavior occurs as indicated above.
Registry values
How enabled and disabled states update the registry.
No explicit registry values are set for enabled or disabled states.
Policy elements
Inputs and configuration options exposed by this policy.
| Element | Type | Registry mapping | Constraints & behavior |
|---|---|---|---|
Bytes: ID Netlogon_MaximumLogFileSizeLabel | decimal | HKLM\Software\Policies\Microsoft\Netlogon\Parameters\MaximumLogFileSize Type REG_DWORD | Range: ? to 4294967295 |
Other policies in this category
Explore related policies at the same level.
- ComputerAllow cryptography algorithms compatible with Windows NT 4.0At least Windows Vista
- ComputerContact PDC on logon failureAt least Windows Server 2003 operating systems or Windows XP Professional
- ComputerLog Enhanced Domain-wide NTLM LogsAt least Windows 11 Version 24H2
- ComputerSet Netlogon share compatibilityAt least Windows Server 2003
- ComputerSet scavenge intervalAt least Windows Server 2003 operating systems or Windows XP Professional
- ComputerSet SYSVOL share compatibilityAt least Windows Server 2003
- ComputerSpecify expected dial-up delay on logonAt least Windows Server 2003 operating systems or Windows XP Professional
- ComputerSpecify log file debug output levelAt least Windows Server 2003
- ComputerSpecify negative DC Discovery cache settingAt least Windows Server 2003 operating systems or Windows XP Professional
- ComputerSpecify positive periodic DC Cache refresh for non-background callersAt least Windows Server 2003 operating systems or Windows XP Professional
- ComputerSpecify site nameAt least Windows Server 2003 operating systems or Windows XP Professional
- ComputerUse final DC discovery retry setting for background callersAt least Windows Server 2003 operating systems or Windows XP Professional