Open in the explorer

Specify log file debug output level

Spécifier le niveau de sortie de débogage du fichier journal

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Net Logon FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Net Logon
Supported on
At least Windows Server 2003 FR: Au minimum Windows Server 2003
ADMX file
Netlogon.admx
Internal name
Netlogon/Netlogon_DebugFlag

Explanation

This policy setting specifies the level of debug output for the Net Logon service.

The Net Logon service outputs debug information to the log file netlogon.log in the directory %windir%\debug. By default, no debug information is logged.

If you enable this policy setting and specify a non-zero value, debug information will be logged to the file. Higher values result in more verbose logging; the value of 536936447 is commonly used as an optimal setting.

If you specify zero for this policy setting, the default behavior occurs as described above.

If you disable this policy setting or do not configure it, the default behavior occurs as described above.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie le niveau de sortie de débogage pour le service Net Logon.

Le service Net Logon inscrit les informations de débogage dans le fichier journal netlogon.log dans le répertoire %windir%\debug. Par défaut, aucune information de débogage n’est enregistrée.

Si vous activez ce paramètre de stratégie et si vous spécifiez une valeur différente de zéro, les informations de débogage sont enregistrées dans le fichier. Des valeurs plus élevées entraînent l’enregistrement d’informations plus détaillées ; la valeur 536 936 447 est généralement la plus haute.

Si vous spécifiez la valeur zéro pour ce paramètre de stratégie, le comportement par défaut décrit ci-dessus se produit.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, le comportement par défaut décrit ci-dessus se produit.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Netlogon\Parameters
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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: Netlogon/Netlogon_DebugFlag
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Level
Set-ItemProperty -Path $k -Name 'dbFlag' -Value 536936447 -Type DWord  # maximum 4294967295

Disable

# Disable: Netlogon/Netlogon_DebugFlag
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Netlogon/Netlogon_DebugFlag
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
Remove-ItemProperty -Path $k -Name 'dbFlag' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Level:Niveau :Netlogon_DebugFlagLabelNumeric boxdecimaldbFlagREG_DWORD
Required · Max: 4294967295 · Default (UI): 536936447

Availability