sc config i8042prt start= disabled
Note that, for this feature to work, you need to uninstall the keyboard from Device Manager as shown above and restart your PC.
If you change your mind and want to re-enable the keyboard, you can use the following command in Command Prompt with admin rights.
sc config i8042prt start= auto
Once you see the success message, restart your PC to apply the changes.
Another odd solution to disabling the built-in keyboard is to install an incompatible driver for the input device. Here's how to do it.
1. Open Device Manager and expand the Keyboard section .
2. Right-click on your laptop keyboard device and select Update driver .
3. Select Browse my computer for drivers .
4. Next, select Let me pick from a list of available drivers on my computer .
5. Uncheck the Show compatible hardware option .
6. Select a random manufacturer in the Manufacturer column .
7. Click Next . Click Yes if the Update Driver Warning dialog box appears.
8. After installation, close Device Manager and restart your computer.
After restarting, your laptop keyboard will stop working. If you need to reinstall the correct driver to enable the keyboard, right-click on the keyboard device and select Update driver . Next, select Search automatically for drivers . Windows will find a compatible driver and install it.
Alternatively, select Browse my computer for drivers in the Update Drivers dialog box . Next, select Let me pick from a list of available drivers on my computer . Make sure the Show compatible hardware option is enabled. Select the HID Keyboard Device driver from the list and click Next .
Wait for the driver to install. Once complete, restart your computer and the keyboard should start working again.
Good luck!