Keyboard and Mouse Dead in Windows 11 but Working in BIOS and Recovery? How to Repair Corrupt Input Drivers

Abstract: If your USB keyboard and mouse function in BIOS, WinRE, and installation media but go completely unresponsive once Windows 11 loads, the likely culprit is a set of corrupt system driver files. This guide shows how to rep...

Created: 2026-11-02 by

When your keyboard and mouse work in the BIOS, in the Windows Recovery Environment (WinRE), and from a bootable USB installer, but go completely dead the moment Windows 11 itself starts — including Safe Mode — you are almost certainly dealing with corrupt or mismatched system driver files, not failing hardware. The good news is that this can usually be fixed in place, without reinstalling Windows or losing your data, settings, or programs.

Why the failure pattern points to drivers

The keyboard and mouse support built into the BIOS, WinRE, and the Windows setup environment is self-contained: those environments load their own minimal, known-good copies of the input and USB stack. Once the full operating system boots, it instead relies on driver files stored in C:\Windows\System32\drivers. If those files are damaged, replaced with incompatible versions, or corrupted by a failed update, every input device will stop responding the instant Windows takes over.

A useful confirmation sign: the Caps Lock indicator light never toggles. That light is controlled by the keyboard class driver in the loaded OS, so if the driver stack is broken, the OS never even processes the keystroke — the hardware itself is fine, which is also why the same devices work on other computers.

First steps: get a command prompt and map your drives

You do not need a working GUI for this repair. Boot into WinRE (it will respond to your keyboard normally) and open a command prompt, or use the command prompt from installation media.

Drive letters inside WinRE often do not match what you see in Windows. Your system drive might not even be mounted. Use diskpart to inspect and assign letters:

diskpart
list volume
assign letter=F
exit

Identify which volume holds your broken Windows installation (it contains a Windows folder) and which one is your installation media, and note the letters you assigned.

Check version compatibility before repairing

The replacement driver files must come from the same Windows build as your installed copy. Find out what your broken install is running:

dism /Image:F:\ /Get-CurrentEdition

Then check what your installation media contains:

dism /Get-WimInfo /WimFile:D:\sources\install.wim

The WIM file typically holds several editions, so note the index number matching your edition (Home, Pro, and so on). Compare the major and minor build numbers between the two. This matters more than most people expect: Microsoft only distributes the newest ISO for download, and if your installed build is an intermediate update that never got a full ISO release, the builds will not match exactly.

Attempt the automatic repair with DISM

If the major and minor build numbers match exactly, DISM can repair the damaged files using the image on your installation media. First create a scratch folder with at least 1 GB free:

mkdir C:\scratchdir
dism /Image:F:\ /Cleanup-Image /RestoreHealth /Source:wim:D:\sources\install.wim:3 /scratchdir:C:\scratchdir

Replace the drive letters and the index number with your own values. If DISM reports that it cannot find the installation data, the build numbers of the image and your installation are not identical — this is the common failure case described above, and it means you need the manual method instead.

Manual fix: replace the input driver files directly

Drivers across the same major build are generally compatible even when DISM refuses to run. Mount the WIM from an ISO of the closest matching build (or copy from another Windows 11 machine on the same major build), then overwrite the suspect driver files in your broken installation. The files involved in keyboard, mouse, and USB input handling are kbdclass.sys, mouclass.sys, kbdhid.sys, mouhid.sys, USBXHCI.sys, and usbhub3.sys.

mkdir C:\extracted
dism /Mount-Wim /WimFile:D:\sources\install.wim /Index:3 /MountDir:C:\extracted /ReadOnly
copy C:\extracted\Windows\System32\drivers\kbdclass.sys F:\Windows\System32\drivers\ /y
copy C:\extracted\Windows\System32\drivers\mouclass.sys F:\Windows\System32\drivers\ /y
copy C:\extracted\Windows\System32\drivers\kbdhid.sys F:\Windows\System32\drivers\ /y
copy C:\extracted\Windows\System32\drivers\mouhid.sys F:\Windows\System32\drivers\ /y
copy C:\extracted\Windows\System32\drivers\USBXHCI.sys F:\Windows\System32\drivers\ /y
copy C:\extracted\Windows\System32\drivers\usbhub3.sys F:\Windows\System32\drivers\ /y

Adjust the letters and index to match your setup, unmount the image when done, remove the installation media, and reboot normally. If input comes back, run Windows Update to let the OS reconcile the restored files with your installed build.

Prevention and fallback options

  • Keep a recent full image backup (for example with wbadmin or a third-party imager) so a corrupt driver set costs minutes, not days.
  • If a Windows update preceded the failure, check C:\Windows\Logs and update history once input is restored, and pause updates briefly to confirm stability.
  • If the manual copy does not restore input, the corruption may extend beyond these six files; an in-place upgrade (running setup.exe from matching installation media while keeping files and apps) is the next least destructive step before considering a clean install.

Frequently Asked Questions

Why does Safe Mode not work either?

Safe Mode loads a reduced set of drivers, but it still loads the same core input and USB class drivers from System32\drivers. If those files are corrupt, Safe Mode is affected too — unlike WinRE, which carries its own independent copies.

Could this be failing hardware instead?

Very unlikely given the pattern. Devices that work in BIOS, on other computers, and in the Windows installer are physically healthy. The fault lies in the software layer that only the installed OS uses.

Do I need the exact same build number for the replacement drivers?

For DISM's automatic repair, yes — the major and minor build numbers must match exactly, or DISM will refuse the source. For manually copying the six driver files, staying within the same major build is generally sufficient.

Will this fix erase my files or programs?

No. Both the DISM repair and the manual file copy modify only driver files inside Windows\System32\drivers. Your data, settings, and installed applications are untouched. Back up anyway before any system-level repair.

Where can I get an ISO of an older build?

Microsoft's download page only offers the latest release, so for an intermediate build you may need a media-creation tool from that era, an existing ISO you saved, or a healthy machine running the same major build to copy the drivers from.

What if the keyboard works but the mouse does not (or vice versa)?

That narrows the fault further: keyboard-only failure implicates kbdclass.sys and kbdhid.sys, while mouse-only failure points at mouclass.sys and mouhid.sys. The USB host and hub drivers matter for both, so replace them if the affected device is a USB peripheral.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More