Introduction
So my keyboard and mouse suddenly stopped working, and I really didn’t know why. What followed was many frustrating hours spent to try and “safe” my machine from a new fresh Windows 7 install, because it would take just too much time to do a fresh install of everything that I currently have on the laptop.
However, the keyboard did work while I was trying to access the BIOS, but as soon as Windows started loading the keyboard and touchpad stopped working. The system booted to the Windows logon screen and I wasn’t able to do anything. Or at least, then I decided to confront the problem.
Note: First create a backup of your registry or create a System Restore point before you proceed!
The symptoms

Further symptoms manifested themselves by showing that there were some driver problems in the Device Manager. The following devices seemed to have problems:
- HID Keyboard Device
- Standard PS/2 Keyboard
- PS/2 Compatible Mouse
The error codes varied and so it is really dependent of your system configuration, but is should be at least one of the following:
- This device cannot start. (Code 10)
- This device is not working properly because Windows cannot load the drivers required for this device. (Code 31)
- Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39)
- Windows cannot access this hardware because its service key information in the registry is missing or recorded incorrectly. (Code 40)
Fix it automatically in Windows Vista/7
You can fix the problem automatically by downloading and running the following registry file:
DOWNLOAD REGISTRY FIX
Now just restart Windows and the problem should be solved.
If the problem is still present and/or you want to fix it manually, then follow the instructions in the section Fix it manually.
Fix it manually
You should access the registry by clicking on Run and then typing
regedit
Now find the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96B-E325-11CE-BFC1-08002BE10318}
You should now see a key UpperFilters which should contain at least one entry “kbdclass”. If you have the same problem as I do, then you there are more entries there which you should delete. So now after editing, your UpperFilters key should only contain “kbdclass” (without quotes). Restart Windows, and the problem should be fixed.
If you only have the entry “kbdclass” as value and/or are still experiencing the same problem, then you should search for the word “kbdclass” (without quotes) and replace every UpperFilters key with kbdclass and other values to only kbdclass.

Below you’ll find further information and alternative scenarios on how to fix certain sub-problems.
Problems with logging into Windows
To fix the problem you should be able to access the Registry in some way and change the registry keys. I managed to get into windows by using a separate USB-mouse and accessing the On-Screen Keyboard by which I could login and do the necessary registry changes. You can do this by
- Clicking on the Ease of Access button at the bottom-left corner of the login screen
- Checking the “Type without the keyboard” and clicking OK
- Clicking on: Ctrl+AltGr+Del
- Logging in
Fixing other similar problems
The problem in my situation was that there was also a keyboard driver installed from VMware. The VMware Keyboard Driver had an additional entry “vmkbd” in the UpperFilters key, but as I discovered the driver file that was needed (C:\Windows\system32\drivers\VMkbd.sys) was missing which in effect caused all the problems.
The folder with GUID
{4D36E96B-E325-11CE-BFC1-08002BE10318}
represents the class Keyboard that is defined by the Windows operating system. It is used to install devices or other drivers. If you have another but similar problem, then you could try to analyze the filters under the GUIDs as listed below (see [3] for a complete list).
| Class |
GUID |
Device Description |
| CDROM |
4D36E965-E325-11CE-BFC1-08002BE10318 |
CD/DVD/Blu-ray drives |
| DiskDrive |
4D36E967-E325-11CE-BFC1-08002BE10318 |
Hard drives |
| Display |
4D36E968-E325-11CE-BFC1-08002BE10318 |
Video adapters |
| FDC |
4D36E969-E325-11CE-BFC1-08002BE10318 |
Floppy controllers |
| FloppyDisk |
4D36E980-E325-11CE-BFC1-08002BE10318 |
Floppy drives |
| HDC |
4D36E96A-E325-11CE-BFC1-08002BE10318 |
Hard drive controllers |
| HIDClass |
745A17A0-74D3-11D0-B6FE-00A0C90F57DA |
Some USB devices |
| 1394 |
6BDD1FC1-810F-11D0-BEC7-08002BE2092F |
IEEE 1394 host controller |
| Image |
6BDD1FC6-810F-11D0-BEC7-08002BE2092F |
Cameras and scanners |
| Keyboard |
4D36E96B-E325-11CE-BFC1-08002BE10318 |
Keyboards |
| Modem |
4D36E96D-E325-11CE-BFC1-08002BE10318 |
Modems |
| Mouse |
4D36E96F-E325-11CE-BFC1-08002BE10318 |
Mice and pointing devices |
| Media |
4D36E96C-E325-11CE-BFC1-08002BE10318 |
Audio and video devices |
| Net |
4D36E972-E325-11CE-BFC1-08002BE10318 |
Network adapters |
| Ports |
4D36E978-E325-11CE-BFC1-08002BE10318 |
Serial and parallel ports |
| SCSIAdapter |
4D36E97B-E325-11CE-BFC1-08002BE10318 |
SCSI and RAID controllers |
| System |
4D36E97D-E325-11CE-BFC1-08002BE10318 |
System buses, bridges, etc. |
| USB |
36FC9E60-C465-11CF-8056-444553540000 |
USB host controllers and hubs |
The next step is to adjust the UpperFilters like the problem where the CD or DVD drive is missing or not recognized by other programs [1][2].
References