kd.dll Error in Windows 10 and 11: Local WinDbg kernel session

WinDbg can name kd.dll after a local kernel session fails before it shows the target, even when opening a crash dump still works.
The Windows file inventory identifies kd.dll as Local Kernel Debugger. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
In a dedicated test environment, compare opening a known dump with attaching to the local kernel. Record which WinDbg installation and Windows build are involved.
Repair the affected feature
Repair or reinstall the supported WinDbg installation and apply pending Windows servicing updates. If local debugging is disabled by policy, use a dump or the approved test image.
If Windows reports corruption of a protected system file, use Microsoft’s system file repair procedure. Obtain software and drivers through Windows Update or the applicable publisher.
Verify the repair
Open the known dump, then repeat the approved local session and confirm WinDbg identifies the running system.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.