How to Toggle the Touchscreen in Windows 10

Joe Keeley 06-06-2016

If you have a touch-enabled device for Windows 10, you might be wondering how you can enable and disable the touchscreen on your system. While it’s not immediately obvious, it is possible to toggle this feature. And you can even automate it with a shortcut!


Oddly, Microsoft doesn’t support this toggle with a handy option in the new Settings section The Windows 10 Settings Guide: How to Do Anything and Everything Do you know your way around the Settings app in Windows 10? Here's everything you need to know. Read More . Nevertheless, with a bit of effort we can create our own, which will allow you to turn your touchscreen on and off in seconds.

If you have your own method to share on how to toggle the touchscreen, please let us know in the comments below.

How to Toggle the Touchscreen

Windows 10 doesn’t have a built-in method to turn your touchscreen on and off. Though unlikely, it’s possible that your system manufacturer has included its own software to help you manage the touchscreen; please refer to the guide that came with your system.

If the feature is missing, you need to use Device Manager to disable and enable your touchscreen. First, right-click the Start button or press Windows key + X to open the quick access menu. From here, select Device Manager. Alternatively, do a system search for this tool. A new window will open, which lists all the devices detected on your system.

disable touchscreen


Double click on the Human Interface Devices heading to expand the list of devices within. From here, right-click on HID-compliant touch screen and select Disable.

You will then receive a warning message, telling you that disabling this device will cause it to stop functioning. As this is exactly what we want, click Yes to proceed. The touchscreen will instantly be disabled and no further action is required.

If you want to turn the touchscreen back on, simply repeat the above process, but when right-clicking the touchscreen option you will select Enable. However, this may require a system restart to take effect Why Does Rebooting Your Computer Fix So Many Issues? "Have you tried rebooting?" It's technical advice that gets thrown around a lot, but there's a reason: it works. Not just for PCs, but a wide range of devices. We explain why. Read More .

Automate the Toggle Process

If you constantly need to enable and disable your touchscreen, it’s a bit of a hassle to keep going into the Device Manager. To combat this, we can create a shortcut, which will automate the process. It’s a bit complicated, so ensure to follow the instructions carefully. We have split up the steps to make it easy to follow.


1. Set Up Windows Device Console

First, you need to download software called Windows Device Console, or Devcon for short. Normally this comes bundled with Visual Studio Express, but that download is far too bloated for our purposes. Handily, has kindly separated the software into a standalone download. The site is also where this process came from, so many thanks to them.

devcon folder

Once downloaded, unzip the folder. Navigate inside the Windows 8.1 folder (it works perfectly for Windows 10, don’t worry) and then into the folder for your operating system version, 32bit or 64bit. If you’re not sure which you have, check out our guide on discovering your bit version Do I Have 32-Bit or 64-Bit Windows? Here's How to Tell How can you tell if the Windows version you are using is 32-bit or 64-bit? Use these methods and learn why it is important too. Read More .

Now press Windows key + R to open Run, input C:\Windows\System32 and press OK. Then move the Devcon executable into this folder. You may have to provide administrator permissions to drag&drop the devcon.exe into the System32 folder.


devcon system32

Right-click devcon.exe, select Properties, head to the Compatibility tab and check Run this program as an administrator.

2. Find the Hardware ID

Next, press Windows key + X and select Device Manager. Then double click the Human Interface Devices heading. Right-click the HID-compliant touch screen device listing, then select Properties.

With the Properties window now open, switch to the Details tab. Using the Property dropdown, select Hardware Ids. The value of interest to you will be in the following format:


device manager hardware ids

Leave this window open for now. We’ll come back to it in a moment.

3. Create a Batch File

Now open Notepad, which you can find by doing a system search. Paste in the following:

set "touchscreenid=ID_HERE"
devcon status "%touchscreenid%" | findstr "running"
if %errorlevel% == 0 (
    devcon disable "%touchscreenid%"
) else (
    devcon enable "%touchscreenid%"

Switch back to the Properties window that we were using previously. Right click the relevant value and select Copy. Then replace ID_HERE in Notepad with the value that you just copied to your clipboard.

In Notepad go to File > Save As… and name the file touchscreen.bat. Save this anywhere you like; somewhere like your Documents would be a good place. What we did here was to create a simple batch file to automate a system process How to Use Windows Batch File Commands to Automate Repetitive Tasks Do you frequently execute boring and repetitive tasks? A batch file might be exactly what you’re looking for. Use it to automate actions. We'll show you the commands you need to know. Read More .

4. Create a Shortcut

We now need to turn this into a handy shortcut. Navigate to the file you just saved, then right click it and select Create shortcut.

Next, right click the shortcut and select Properties. Within the Target text field, place double quotation marks around the path. Then prefix it with cmd.exe /C. An example Target would be:

cmd.exe /C "C:\UsersJoe\Documents\touchscreen.bat"

touchscreen shortcut

From the Run dropdown, select Minimized so that Command Prompt doesn’t open each time you select the shortcut. Finally, click Advanced…, tick Run as administrator, then click OK and OK again.

You can also set up a keyboard shortcut that will run the batch file. Press the Shortcut key file and enter a key combination you can remember and that isn’t occupied, yet. Maybe something like CTRL + ALT + T.

And it’s done! Place this shortcut wherever you like, perhaps on your desktop or on your Taskbar. Simply open it and it’ll then enable or disable your touchscreen automatically.

Having Problems?

If you’re having problems getting this to work, first reread the instructions and make sure you’ve followed every step and copied the correct ID. A small mistake can make the entire process break, so be careful. If you’re sure you’ve done it all properly and are still having problems, we can create two separate batch files – one for enabling and another for disabling.

First, follow the process above, but for step 3 paste the following in Notepad:

set "touchscreenid=ID_HERE"
devcon disable "%touchscreenid%"

Replace ID_HERE as detailed above and save the file as touchscreendisable.bat. Then continue with the instructions above. When setting a keyboard shortcut, you can use something like CTRL + ALT + D. Now opening this file or using that shortcut will disable your touchscreen.

Next, create another Notepad file and paste the following:

set "touchscreenid=ID_HERE"
devcon enable "%touchscreenid%"

Again, replace ID_HERE and save the file as touchscreenenable.bat. Then carry on with the instructions above. You can set a shortcut like CTRL + ALT + E. This file and shortcut will enable your touchscreen.

To summarize, rather than using a single script to both enable and disable the touchscreen, depending on its current state, we have split this into two separate scripts because the 2-in-1 solution might not work on every system.

Touch On, Touch Off

If you’ve used Continuum, the feature that allows you to switch between desktop and tablet modes, then you might have wanted to disable your touchscreen when in desktop mode. Or perhaps your system comes with touch abilities How to Get the Most Out of Your Touchpad in Windows 10 Your Windows 10 laptop touchpad has potential beyond being a poor mouse replacement. We'll show you how to set it up to use smart touch gestures with up to four fingers. Read More that you just don’t want to use. Whatever the situation, hopefully this guide has helped.

If you’re running a tablet on Windows 10 and are having problems with it, check out our guide on resolving tablet touchscreen problems Tablet Touchscreen Not Working? 5 Tips to Fix Touch Problems Tapping, swiping or zoom-pinching, there's often a moment when the touchscreen display on your tablet refuses to respond. How do you overcome this, and achieve tablet-tapping Zen? Read More to see if it’ll help before resorting to disabling it entirely.

Do you have your own method to toggling the touchscreen to share? Why do you want to disable your touchscreen?

Related topics: Keyboard Shortcuts, Touchscreen, Windows 10, Windows 8, Windows 8.1.

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Pepijn
    October 14, 2019 at 6:51 pm

    Great fix! The only thing I struggle with is that using the shortcut always prompts a user account control popup, asking for permission to change my computer. I would like to avoid that. Have you found a workaround for this issue?

    • Ryan
      March 16, 2020 at 2:04 am

      Hi, I agree with Pepijn and a few others that this page helped a ton, but I'm having the same issue with a popup every time I do the shortcut. Is there any way to eliminate this so I can toggle the touchscreen on and off without that popup that comes with noise and makes me click "yes"?

  2. Cuwa
    May 30, 2019 at 8:24 pm


  3. Jonathan
    September 22, 2018 at 6:59 pm

    Anyone knows how to disable from pure cmd? My screen cracked and it registers phantom touch input which makes my computer unusable unless I can disable from cmd

  4. Jay
    July 2, 2018 at 7:43 pm

    This was working great and now after a recent windows 10 update it has stopped working. Any ideas on how to get this functionality back?

    • Boris
      October 21, 2018 at 9:07 am

      Hi Jay,
      I was having the same issue and just got it solved; I downloaded a more recent version on devcon here:
      You have to extract the file from the .cab file (did this using winzip) and rename it to devcon.exe. Then place it in C:\Windows\System32.

      This worked for me on Windows 10 64bits 1809 althought the link above refers to Win 10 1709, file name is "filbad6e2cce5ebc45a401e19c613d0a28f".

      I didn't have to change anything in my already existing batch file.

    • Boris
      October 21, 2018 at 9:08 am

      Hi Jay,
      I was having the same issue and just got it solved; I downloaded a more recent version on devcon here:
      You have to extract the file from the .cab file (did this using winzip) and rename it to devcon.exe. Then place it in C:\Windows\System32.

      This worked for me on Windows 10 64bits 1809 althought the link above refers to Win 10 1709, file name is "filbad6e2cce5ebc45a401e19c613d0a28f".

      I didn't have to change anything in my already existing batch file.

    • Boris
      October 21, 2018 at 9:12 am

      Hi Jay,
      I was having the same issue and just got it solved; I downloaded a more recent version on devcon.
      Google for file "filbad6e2cce5ebc45a401e19c613d0a28f"
      (seems like I can't post the link here)

      You have to extract the file from the .cab file (did this using winzip) and rename it to devcon.exe. Then place it in C:\Windows\System32.

      This worked for me on Windows 10 64bits 1809 althought the link above refers to Win 10 1709.

      I didn't have to change anything in my already existing batch file.

  5. Titus
    December 17, 2017 at 4:47 pm

    Nice one, works like a charm on my Win10 2-in-1...those ghost-clicks after closing the "lid" were driving me nuts.

  6. Simon
    July 5, 2017 at 6:47 am

    The easiest way is to get this little app called TouchDisable from here

    • ryan
      November 12, 2017 at 2:27 am

      good fix, thanks!

  7. Boe Farmer
    May 23, 2017 at 9:17 am

    This worked AMAZING for my windows surface 3! I dropped it awhile back, and can't afford to get a new one, so the screen is constantly glitching and doing random stuff, but the tablet works perfectly fine besides this. With this little custom shortcut, I can turn it on/ off without any hassle, and it's saved me a lot of headache. Thank you!

  8. Tyler
    May 18, 2017 at 8:38 am

    Does anyone know how to make the batch file without using any third party software? I hate downloading programs. Not a lot of hard drive space.

  9. paler,rechie s.
    March 5, 2017 at 11:56 am

    as i open the Human Interface Devices and open the arrow projected at the left side theirs no HID-compliant touch screen device that has been listed on it. Now i realy dont know what to do with this. this happened when I update my windows 8 to windows 10. Pls help me how to fix this. plsssssssssssss.

  10. Jonathan Moore
    February 22, 2017 at 7:43 pm

    When I move devcon.exe into the Windows32 folder, i can't see it anywhere.. Searching for it via name, date modified, it doesn't exist.. However if I try to copy it into the folder again, it asks me if I want to overwrite it.. :/

  11. Jay
    January 28, 2017 at 12:42 pm

    Worked perfectly! Thanks!

  12. fss
    October 16, 2016 at 9:03 pm

    Thanks for the brilliant article! Worked like a charm for months, but after updating Windows to the latest version (Build 14393) it stopped working. After running the batch file separately and looking at the output, it stated that it did not recognise devcon. The fix in this case was to download devcon.exe again and move it to System32. For some reason Windows deleted the .exe during the update... But following these steps it is up and running again, hope this can help others!

  13. nathan
    September 2, 2016 at 5:14 am

    thank you so much, it works perfectly! only my hardware id didn't have a HID\VID_####&PID_####&COL## format so i used the one with HID\VID_####&PID_####&MI_## format and it seems to work!

  14. Bristolview
    July 17, 2016 at 3:02 pm

    I'm trying to do this... but encountered one issue. You list the format for the Hardware ID we need, but my tablet doesn't have any entry that matches that format. I have one entry starting with HID\VID but it does not match your format. It is HID\VID_####&Up:###F_U:#### - which you have in your system too, but that's the not Hardware ID you said we need.

    The Hardware ID's I have are:

    and that's it. Is one of these the Hardware ID I need? Everything else in your instructions is very clear and easy - just stumped at the needed ID to use. Can you help? Thanks so much!!

    • Adib
      December 26, 2017 at 3:50 pm

      I was having the same problem, so with trial and error, I found the right one. Choose the following string as the Hardware ID:


  15. Meychel
    June 20, 2016 at 7:39 pm

    I try this. it used to work on win 8.1

    In windows 10, even with touchscreen device disabled, it is still working. devmanager know it is disabled but devcon status show it as running. how do i fix this?

  16. kasthepahne
    June 16, 2016 at 2:33 am

    try using Long Path Tool, it works.