How to Disable a Laptop’s Keyboard on Windows?

If you are facing weird issues with your laptop’s keyboard, there are some ways that you can use to disable the keyboard. The keyboard issues cannot be fixed by replacing it as it is permanently attached to the laptop. So the problem is if the keyboard starts creating issues such as keys getting pressed automatically or the keyboard keeps disconnecting, what should you do rather than take your laptop to the repair shop? Well, the solutions are very simple. You will need to disable the keyboard. So it will not interfere when you type with the external keyboard.

There are five ways to disable your keyboard on Windows 10. These steps can also apply to Windows 11.

1. Use Device Manager to Disable the Keyboard

Device Manager displays a list of drivers that are installed on your computer. You have to select your keyboard driver from there to disable the laptop’s keyboard.

  1. To disable the driver, open Run Program by pressing Win + R on the keyboard
  2. Type devmgmt.msc and click OK

    Launching Device Manager
    Launching Device Manager
  3. Expand the keyboard menu to see the list of drivers
  4. Right-click Standard PS/2 Keyboard then click Disable or Uninstall

    Click to Disable Device
    Click to Disable Device
  5. Click Yes if asks for confirmation
  6. Once done, restart your computer to see if the issue is fixed.

2. Disable the Service that controls the PS/2 Port

Another method to disable the internal keyboard is to disable the service that transfers the input data to the laptop. This method works for almost every laptop as the ps/2 port helps connects most laptops to the keyboard. Disabling the PS/2 port will actually disable the power, which will stop the input data once you restart.

  1. To disable the PS/2 Port service, from Start Menu, type Command Prompt
  2. Right-click on the command prompt and choose Run As Administrator

    Launching Command Prompt With Administrator Permissions
    Launching Command Prompt With Administrator Permissions
  3. Once the terminal opened, type the following command and hit enter
    sc config i8042prt start= disabled
    Disabling PS/2 Port Service
    Disabling PS/2 Port Service
  4. If you want to enable copy and paste the below command
    sc config i8042prt start= auto
  5. Once done, restart your computer and see if your keyboard is disabled.

3. Enable Device Installation Restriction (Olde Version)

Device Installation Restriction will allow you to prevent Windows from installing the driver. Basically, it is a feature that takes the hardware id of the device that you don’t want windows to install and restricts the Windows update to install the device driver. Therefore, you have to enable Device Installation Restriction From Group Policy Editor.

  1. First, you need to get your hardware id. For that, right-click on Start Menu
  2. Select Device Manager from the listed options
    Open Device Manager
    Open Device Manager
  3. Find and right-click Standard PS/2 Keyboard and choose Properties
  4. Go to Details from the top and select Hardware Ids from the Property Menu
  5. Now right-click on the first entry and click Copy

    Copying Hardware Id
    Copying Hardware Id
  6. Once you copied, launch Group Policy Registry Editor by pressing Win + R on the keyboard
  7. Type the following command and hit enter
    gpedit.msc
    Navigating to Group Policy Editor
    Navigating to Group Policy Editor
  8. Under Computer Configuration, navigate to the following path
    Administrative Templates > System > Device Installation > Device Installation Restrictions
  9. Double-click on Prevent installation of devices that match any of these device instance IDs
  10. Select Enabled from the top left corner then click Show

    Enabling Device Installation Restriction
    Enabling Device Installation Restriction
  11. Now double click on the empty space under Value and paste the copied Id here
  12. Once done, click OK to save the changes
    Enter the Hardware Id
    Enter the Hardware Id
  13. Now launch the device manager. For that, right-click on Start Menu
  14. Select Device Manager from the list of options
  15. Expand the Keyboard Menu and right-click on Standard PS/2 Keyboard
  16. Choose Uninstall and restart your computer
    Uninstalling Device
    Uninstalling Device

4. Use the Wrong Driver to Disable the Keyboard

If the above solution fails to disable the keyboard, another thing you can do is select the incompatible driver for the keyboard, which allows you to disable the keyboard permanently as it won’t download the driver either. Follow the steps to select the incompatible driver:-

  1. Press Win + R to launch the Run Window
  2. Type devmgmt.msc and press Enter to navigate into it
    Navigating to Device Manager
    Navigating to Device Manager
  3. Right-click on Standard PS/2 Keyboard and click Update Driver

    Selecting Update Driver
    Selecting Update Driver
  4. Choose Browse My Computer For Drivers

    Select Browse My Computer For Drivers
    Select Browse My Computer For Drivers
  5. Click Let Me Pic a List of Available Drivers on My Computer

    Manually Pick Incompatible Driver
    Manually Pick Incompatible Driver
  6. Select any driver from the list except the compatible one
  7. Once done, click Next. Click Yes when asked for the confirmation
  8. Again click Yes if asks for a restart or manually reboot your computer

5. Change Device Installation Settings

Device installation settings allow Windows to download drivers automatically for their hardware via Windows update. Usually, you may see that when you restart after uninstalling the device, the driver automatically installs. Thus, to fix this, you will need to stop Windows from installing the driver. Therefore, you have to change the Device Installation settings.

  1. To change the device installation settings, open the Run Program by pressing Win + R at the same time
  2. Type sysdm.cpl and click OK to navigate into system properties settings
    Navigating to System Properties
    Navigating to System Properties
  3. Go to Hardware from the top and click Device Installation Settings

    Changing Device Installation Settings
    Changing Device Installation Settings
  4. Choose No (your device might not work as expected) and click Save Changes
  5. Then, click OK

    Click No to Disable Automatic Reinstall Driver
    Click No to Disable Automatic Reinstall Driver
  6. Once done, right-click on Start Menu and navigate to Device Manager
  7. Locate and right-click on Standard PS/2 Keyboard then click Uninstall

    Click to Uninstall
    Click to Uninstall
  8. Reboot your computer.
Hamza Mohammad Anwar
Hamza Khan is an intermediate javaScript web developer specializing in reactjs, MongoDb, express nodeJs, and more. He creates faster and better applications using mern technologies.

Expert Tip

How to Disable a Laptop’s Keyboard on Windows?

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested