kbdth2.dll Error in Windows 10 and 11: Thai Kedmanee (non-ShiftLock) Keyboard Layout

Test Thai Kedmanee (non-ShiftLock) when a key sends a different character than its physical label, or Windows reports kbdth2.dll on switching layouts. The active layout can be tested with the two documented positions below.
Microsoft lists 0002041E as the identifier for Thai Kedmanee (non-ShiftLock). The Windows file inventory identifies kbdth2.dll as Thai Kedmanee (non-ShiftLock) Keyboard Layout. Microsoft records its introduction as pre-XP in Microsoft’s layout index.
Check the active layout
Switch with Win + Space while Notepad is focused. Select Thai Kedmanee (non-ShiftLock), matching the whole name. Turn Caps Lock off and count physical character keys from the specified anchor, regardless of the legends printed on your keyboard.
The Thai Kedmanee (non-ShiftLock) keyboard diagram shows the expected output for each mode.
Press the first character key to the right of Tab with no modifier held. Look for ๆ (THAI CHARACTER MAIYAMOK, U+0E46).
Press the fourth character key to the right of Caps Lock while holding Shift. Look for โ (THAI CHARACTER SARA O, U+0E42).
Check the full layout name if the first character matches and the second differs. Another layout for the same language can share a base letter while placing a shifted character elsewhere. In a remote session, repeat the check in a local Windows window and then inspect the layout in the remote session separately.
Repair the input profile
Open Settings › Time & language › Language & region on Windows 11, or Settings › Time & Language › Language on Windows 10. Open the installed language’s options and add Thai Kedmanee (non-ShiftLock) under Keyboards if available. If it is already installed and another usable layout is available, remove and add this entry back. See Microsoft’s keyboard settings.
If a supported build fails to load this layout in multiple local apps and still names the Windows copy of kbdth2.dll, record the file path and error code. Use Microsoft’s System File Checker instructions for evidence of system file corruption. For an error pointing into a separate app’s folder, repair the app through its publisher.
Verify the two key positions
After signing back in, reopen Notepad and select Thai Kedmanee (non-ShiftLock). Repeat the first position from Tab and the fourth position from Caps Lock using the same modifier conditions. Confirm both characters, then repeat the original action in the affected program.
For input failures across Windows text fields, see the PC Repair Atlas guide to InputHost.dll. The exact Windows file record documents the binary identity.