FolderRisk: Caution
debug C:\Windows\debug
Folder for Windows component debug logs, mainly netlogon.log (Netlogon service); nearly empty while no debug logging is on.
What it’s for
Netlogon writes its debug log, netlogon.log, here as soon as debug logging is enabled. That is the case Microsoft documents, and the one you meet in practice when diagnosing domain authentication failures. Other components may drop their own files here, depending on the version and the installed roles.
What it contains
netlogon.log: Netlogon service activity (domain authentication, secure channel). When it reaches 20 MB by default, it is renamednetlogon.bakand a new file is started.- Sometimes other component logs, such as
PASSWD.LOG. - Almost nothing if no debug logging is active.
Risks and best practices
- Keep these logs until a domain authentication diagnosis is finished, since they are the only detailed trace of the secure channel.
- Netlogon logging can take up to twice the configured maximum size (the file plus its
.bak). Turn it off when the diagnosis is over. - The files mention account and machine names, so treat them as internal data and archive them before purging.
Useful commands
# Last lines of the Netlogon log, if it existsGet-Content "$env:windir\debug\netlogon.log" -Tail 30
# Netlogon logging level (DBFlag value, absent if not configured)reg query HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters /v DBFlagFolder contents
Folders 2
Logs 7
- dcpromo.logLog of Active Directory Domain Services promotion and demotion of a domain controller…
- dcpromoui.logLog of the AD DS promotion and demotion interface; complements dcpromo.log. Specific to…
- Dfsr*.logDfsr*.log: numbered debug logs of the DFS Replication (DFSR) service, hence of SYSVOL…
- mrt.logmrt.log: log of the Windows Malicious Software Removal Tool (MSRT), run monthly through…
- netlogon.baknetlogon.bak: previous version of netlogon.log, created when it reaches its maximum size…
- netlogon.logNetlogon service debug log: domain controller discovery, secure channel, authentication…
- NetSetup.LOGLog of domain join and unjoin operations (NetJoin); the first file to check when a…