Skip to content

Code 10 Device manager/ Keyboard not working, mouse not working /ps2

April 20, 2011

Ok, so this has been one of the best fixes i have ever gotten my hands on. When removing  infections, or sometimes when updating the ps/2 stuff you run into an issue with a code 10 in device manager for the keyboard and mouse. This pretty much means you have no access to your mouse or keyboard. Bummer. This can happen on both laptops and desktops. Most people recommend an operating system install, try this first.

*The fix* automatic

1. Save this into notepad and call it anything.bat and then run it, should be good to go.
Windows Registry Editor Version 5.00

; REGEDIT.EXE /S “%~f0”




*The fix* Manual

1. Plug in a usb keyboard and mouse. (They almost always load up just fine)

2. Load into windows. (doesnt matter if its safe mode, or just regular boot)

3. Make sure you load into the administrator account. Go to the start menu (in vista and windows 7 just start typing regedit) (for xp, go to the start menu and click run, then type regedit). Once you load up regedit find these keys and edit them.

4. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\{4D36E96B-E325-11CE-BFC1-08002BE10318}

Look for a value titled UpperFilters, its type is REG_MULTI_SZ. If it doesn’t exist, create it. Edit the value UpperFilters to read kbdclass. If there are any other line items in UpperFilters, delete them.

5. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\{4D36E96F-E325-11CE-BFC1-08002BE10318}

Look for a value titled UpperFilters, its type is REG_MULTI_SZ. If it doesn’t exist, create it. Edit the value UpperFilters to read mouclass. If there are any other line items in UpperFilters, delete them.

6. Reboot the machine and you should now have a working keyboard and mouse.

*If you notice HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\    has registry keys that all relate to the hardware. Key that in mind…..

**Adding to the post yet again. If you cant get the keyboard to work and you have tried plugging another keyboard in with no luck, use the on screen keyboard (vista and 7) .

1. If you need to put in a password you should see a small blue icon in the left corner. Click it. It will bring up another menu. Use the on screen keyboard and apply the above fix.

2. If you dont have a password and it logs right in, go to the start menu, then all programs, accessories, ease of use. The on screen keyboard is in there. Use it and apply the fix listed above.


From → Uncategorized

  1. thanks a lot permalink

    you are the best

    you fix my mouse

    thank u a lot

    Ramy , Egypt

  2. chris permalink

    amazing.tried uninstall, installing again nothing…tried using the usb port instead of ps2.nothing again. keyboard (microsoft digital) was dead.added the first value on regedit by using copy paste from the internet since the keyboard was dead and there was no way to input words….
    as you can see…after a reboot im typing……
    i cannot say how much i appreciate this.i was ready for a full system installation…format ,windows installation……you saved me many wasted hours .
    really very thankful
    chris ,greece

    • Right!? its a really nice fix. Much better than reinstalling the OS and then having to install all of your stuff again. Cheers

  3. Aqib permalink

    its not still working…..

  4. anj permalink

    thanks, thanks and thanks

  5. Kopija permalink

    Just had this problem after uninstalling one program and then rebooting pc. Took me almost whole day I’ve tried almost everything, even PS/2 mouse/keyboard didn’t work.
    Until I found this.
    What I did – used old PC to download Kaspersky Rescue Disk 10, installed it to USB then I boot it on new PC and use their Kaspersky Registry Editor and removed additional UpperFilters lines. Everything works fine now 🙂 Thanks

  6. schakal permalink

    Thanks a Lot for this great Workaround. It helps me to fix the keyboard code 10 error after a Kaspersky Removal Session!

  7. Sandip Bandyopadhyay permalink

    You saved me. I really don’t know how to thank you for distributing your knowledge which will save re-installation hazards for many noobs. Code 10 is really a critical problem with no proper help from MS. You have done a great workaround. Please accept my hearty regards and a salute.

  8. zaw permalink

    thanks a lot….

  9. Nicholas permalink

    thank you. this helped my crappy computer. i need to by a new one. bought this laptop from an idiot that sold it to me which he was a supposed friend. waste of money.

    • never buy a pc from a friend haha. Unless you know alot about that pc you plan to buy.

  10. Cooldudeachyut permalink

    You are really the best

  11. Tim permalink

    Thank you, thank you, thank you!!! Worked like a charm.

  12. Ivan permalink

    Wow this is amazing! I’ve tried different workarounds and atlast I was so lucky for getting through this page and the solution worked perfectly for me after running it first i thought it did’t work but when i restarted my laptop boom! My keyboard is Back! =D thank you so much for sharing this! I almost lose my hope and had plan bringing it to a technecian.. You’re the best!

  13. what to do in case of windows 8 laptop..
    is there any problem in win 8 version

  14. Anders permalink

    Like everybody else I like to thank you for this expert help. My problem is a little different, I do not see and problems in the device manager and do not get a code 10 error. My keyboard does not work and the fix you suggest was not needed since the register was correct. My keyboard works fine when in BIOS but not in Windows so it is not HW, have tried all “easy” fixes, any thoughts?

    Thanks in advance!

  15. lailla permalink

    Esselamu alejkum.
    I found this help too late. For all those that this advice doesn’t work, try reboot, of course you have to put other keyboard or mouse to do it.
    Stupid Kaspersky. he caused me no good but trouble, blocked and keyboard and mouse.

  16. Barry Allen permalink

    amazing solution 😀 THx.

  17. you’re a genius

  18. nick permalink

    +1. like. tweet. share. post. Everything! Amazing fix! 😀

  19. Chris permalink

    Thanks!…I couldn’t get the auto fix to work but the maual fix worked well.

  20. Bittu permalink

    Oh My God….. U r the real genius… we got u here, thanks god 4 this amazing man…. u Rocked.. u will keep rocking without a doubt…. thanku very much

  21. Choo permalink

    Dear Author, Thank you for making this post! It solve my problem within minutes but before i found this post i had wasted many hours trying to solve this ERROR CODE 10 thing……

    Thank you !!!!

  22. Karthik permalink

    hey this solution works for me thanks a lot,but still i cant able to use my laptop keys.i can be able to use lap with the secondary keyboard only..please help me

  23. Jeff permalink

    Thank you very much

  24. Sarah permalink

    Here 4 years later to say THANK YOU!!!!! I spent days trying to figure this out because I couldn’t afford to do a system reboot but this actually worked. Thanks so much!

  25. will_i_am_not permalink

    Just for clarification, the automatic way works on windows 8, no save-as requirements, and you can select “run as administrator”, correct?

  26. chinmay permalink

    Thanks a lot!

  27. marui_man permalink

    thanks man! you really helped me alot! I’ve searched the web for an hour, goodthing your solution works!

  28. Alan permalink

    I followed the steps. Changed upperfilters to the corresponding values above. I was able to use an external USB mouse. Then I removed the information in the “data” column on the right thinking that’s what I was supposed to do. Now I cannot use even the external mouse. When I plug the external mouse in via USB, the computer makes a noise, as it always does. But is not functional. Continue to try to system restore and get an error related to antivirus. I think editing the information in the data column in the registry has completely ruined my ability to get the issue fixed. Luckily I have a working touch screen(for now until I punch the damn thing). Please help!!

    • In this case you would need to follow a number of steps to mount the registry hive outside the OS (from repair your computer) and then you should be able to look inside that key and see if something is wrong with it. Let me know if you want me to explain all that in detail.

  29. onj permalink

    thank you so much! also managed to do this without a keyboard, just used onscreen keyboard (in access options on windows 8) thanks!!

  30. William permalink

    I’ve been trying to solve this for about three days now I have tried everything and its been really frustrating. The paste code into notebook did not work but changing it manually did seriously thank you for the great info and help!

  31. 5/28/15
    Lost use of keyboard and touchpad after Windows Update on 5/22/15. Thankfully my mouse worked and used onscreen keyboard. On 5/25/15 Paid $99.00 to Microsoft for tech support, wish I would not have done that! They performed a System Restore back to 5/18/15 which fixed the problems with keyboard & touchpad but now the cursor constantly has a working in background symbol next to it!! There is a constant lag, the computer freezes and/or does not respond and CPU usage is very high as well. I’m afraid my computer is going to crash soon and I’ve only had it a bit over a year. I have a Toshiba Satellite E55-A5114 laptop. Microsoft said they would call me back after I reported this issue to them last night, up to this point, they have not. I don’t know what to do to get this new issue resolved. Can anyone help me, please? I’m not very computer savvy, sorry to say 😦 Thank you!

  32. Nicole permalink

    Thank you so much. I read elsewhere that Microsoft supposedly removed the bad update yesterday, but even after installing all new updates, my mouse and keyboard still didn’t work. Thank you so much for this fix. I couldn’t get the auto fix to work, but the manual one worked great! I’ve had so much trouble with this Toshiba E45T-A4200, I was ready to chuck it. I know this was an MS update issue, but I feel this laptop is cursed.
    Thank you!!!!!

  33. Dairon jaramillo permalink

    Muchas gracias, funcionó perfecto… Mil gracias… Tenia este problema en mi toshiba E55t-A5320

  34. Sempron permalink

    Thank you.

  35. JORGE permalink

    June 12, 2015

    It worked perfectly. Solved keyboard and mouse not working with CODES 10 and 19 on Toshiba E45t.
    No more problems after this. I used MANUAL option.

  36. Nicole H permalink

    You are amazing!!!! Your manual directions worked like a charm. My touch pad hasn’t worked since May and the keyboard has been on an off for months now. I was a little nervous changing things but it was perfect instructions! Thank you so much!!

  37. Martin permalink

    Thanks so much! The manual instruction was very helpful!

  38. Digolau permalink

    You are a genius!!!

  39. Line Blaise permalink

    Thanks. I read through some posts on About dot com that suggested to remove these registry values. Got a paralyzed computer. No keyboard or mouse whatsoever. Rebooted with F8 and selected last known good config. Got back my USB mouse. Followed your steps.

    Now everything is just perfect.

  40. Thanks. Some idiots on About dot com suggested to remove these registry entries and I ended up with a paralyzed laptop.
    Did reboot with “Last known good configuration” and re-added these keys. Another reboot and I’m back on track.

    Thanks again.


  41. Prathamesh permalink

    Thank you so much 👏👏

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: