0

I'm trying to disable my built-in keyboard as the Windows and P keys keep sticking and "project screen" always pops up. My solution was to remove the driver for the keyboard.

I've tried looking on the internet for how to remove the driver for the built-in keyboard. However, it's not permanent. After a few restarts, the driver comes back and the built-in keyboard is no longer disabled. Sample link that I tried.

Since it keeps on coming back, I'm thinking of using a script to automatically follow the steps to remove the driver. How can I disable the built-in keyboard of my laptop using a script? Or how can I permanently remove the driver?

I checked the questions below, but they are not answered and are not asking for a script.

Temporarily disable laptop built-in keyboard on Windows 10, is it possible?

Disabling the built in keyboard and using an external USB keyboard

MMM
  • 3,257

2 Answers2

0

Long time since I've used Windows, but I guess you could just disable it in the Device Manager:

  1. Press Win+X.
  2. Navigate to Device Manager.
  3. Right click on the device you want to disable.
  4. Click Disable.
  5. Reboot to see if it worked.

Another solution might be to not allow the reinstallation of drivers. Please keep in mind that this means you might have to manually install drivers for any new peripheral you connect:

  1. Press Win+R and type gpedit.msc in the box.
  2. On the left side pane in the window that pops up, navigate to Computer Configuration > Administrative Templates > System > Device Installation > Device Installation Restrictions.
  3. Right click on Prevent Installation of Devices not described by other policy settings.
  4. Change the option from Not configured to Disabled.
  5. Exit.
  6. Press Win+X.
  7. Click Device Manager.
  8. Right click on the device you want to remove and choose Uninstall.
  9. Reboot your PC to see if the changes stuck.

Please let me know if that worked. Good luck.

telometto
  • 349
0

I have similar needs: cleaning lady always touch the keyboard wanna disable it and enable it with scheduled task. Disable at 5pm enable at 8am

Henry
  • 1