Download Article
Prevent apps from running on your Windows PC even when you double-click them
Download Article

Do you want to stop applications or .EXE programs from running on your computer? Applications and .EXE files can be individually disabled from within the Registry Editor on any Windows computer. But be careful when editing the registry. Changing or deleting any values not explicitly covered in this article can cause damage to your computer. This How.com.vn article teaches you how to prevent an application from running on a Windows computer.

Things You Should Know

  • You can block a program name from running on your Windows PC by creating a DisallowRun registry value.
  • You'll need the program file name of the application you want to block, such as notepad.exe or handbrake.exe.
  • Users will not be able to double-click the file or select it from the Start menu to run it, but they can change its name to bypass the limitation.
Part 1
Part 1 of 3:

Finding the Application Name

Download Article
  1. How.com.vn English: Step 1 Open the Start menu icon.
    Click the Windows logo in the bottom-left corner of the screen.
  2. How.com.vn English: Step 2 Find the program you want to block.
    You may need to click All Apps to expand the list.
    Advertisement
  3. How.com.vn English: Step 3 Right-click the program and select More.
    Another menu will expand.
  4. How.com.vn English: Step 4 Click Open file location.
    This opens the file location of the program's shortcut in File Explorer.
  5. How.com.vn English: Step 5 Right-click the shortcut and select Open file location.
    This opens the program's actual file location.
  6. How.com.vn English: Step 6 Right-click the program's icon and select Properties.
    Doing so opens the Properties window for the program.
  7. How.com.vn English: Step 7 Review the application's name and extension.
    The file's name is listed in the text box at the top of the Properties window, while the extension is in parentheses to the right of the "Type of file" heading. You'll combine these two (e.g., "name.extension") to create the file's name in the Registry Editor.
    • The extension will almost always be ".exe".
    • For example, if you looked up the file location of Notepad, you'd find that its name is "Notepad.exe".
  8. Advertisement
Part 2
Part 2 of 3:

Creating Registry Keys

Download Article
  1. How.com.vn English: Step 1 Open the Registry Editor.
    To get to Registry Editor quickly, type regedit into the Windows Search bar, then click Registry Editor in the search results.
    • Click Yes when prompted.
    • If you aren't an administrator, you won't be able to open the Registry Editor.
  2. Step 2 Navigate to the "Policies" folder.
    To do so:
    • Double-click the HKEY_CURRENT_USER folder in the top-left side of the window.
    • Double-click the Software folder below "HKEY_CURRENT_USER".
    • Double-click the Microsoft folder.
    • Double-click the Windows folder.
    • Double-click the CurrentVersion folder.
    • Click the Policies folder once to display its contents in the right panel.
  3. How.com.vn English: Step 3 Click the Edit menu.
    This tab is in the upper-left side of the Registry Editor window.
  4. How.com.vn English: Step 4 Select New and click Key.
    A new folder will appear below the "Policies" folder on the left-hand side of the window.
  5. How.com.vn English: Step 5 Type Explorer and press ↵ Enter.
    This will create a new folder that's titled "Explorer" in the "Policies" folder.
  6. How.com.vn English: Step 6 Click the Explorer folder in the left panel.
    This is the folder you just created.
  7. How.com.vn English: Step 7 Create a new DWORD value in the Explorer folder.
    To do so, click the Edit menu, select New, and then click DWORD (32-bit) Value.
  8. How.com.vn English: Step 8 Type DisallowRun and press ↵ Enter.
    Doing so renames your DWORD value as "DisallowRun".
  9. How.com.vn English: Step 9 Double-click DisallowRun.
    This will open the "DisallowRun" value.
  10. Step 10 Change the "DisallowRun" value to "1".
    Type 1 into the "Value data" field, then click OK.
  11. Step 11 Select the "Explorer" folder again.
    Click this folder in the left-hand column again.
  12. How.com.vn English: Step 12 Create a new key inside the folder.
    Click Edit, select New, and click Key.
  13. How.com.vn English: Step 13 Type DisallowRun and press ↵ Enter.
    This creates a new folder inside of the "Explorer" folder titled "DisallowRun".
  14. Advertisement
Part 3
Part 3 of 3:

Blocking Programs

Download Article
  1. Step 1 Select the "DisallowRun" folder.
    Click this folder below the "Explorer" folder on the left side of the window.
  2. How.com.vn English: Step 2 Create a new string value.
    Click Edit, select New, and click String Value.
  3. How.com.vn English: Step 3 Type 1 and press ↵ Enter.
    This will name your string value "1".
  4. How.com.vn English: Step 4 Open the string value.
    Double-click the 1 string value to open it.
  5. How.com.vn English: Step 5 Enter your application's name.
    Click the "Value data" field, then type in the name and extension of the application that you checked in part one.
    • For example, to block Notepad, you would type in notepad.exe here.
  6. How.com.vn English: Step 6 Click OK.
    Doing so saves your string value. This string value will prevent the specified program from being opened.
    • If you want to add subsequent string values for other programs, name them in numerical order (e.g., "2", "3", "4", etc.).
  7. How.com.vn English: Step 7 Close the Registry Editor.
    At this point, you should no longer be able to open the program, but you may need to restart your computer before these changes take effect.
  8. Advertisement


Community Q&A

Search
Add New Question
  • Question
    When creating a registry hack with Notepad. Do I save the file type as unicode?
    How.com.vn English: Community Answer
    Community Answer
    If the file doesn't contain any non-ordinary characters (such as from emojis or text from another language), then you can save it as any file type you want.
  • Question
    I couldn't rename the Key under "explorer" to DissallowRun it gave an error message. I tried with "Disallow" only.
    How.com.vn English: WF
    WF
    Top Answerer
    Click Ctrl+Shift+Esc to open Windows Task Manager and select your app and click on "End Process".
  • Question
    Will the icon for the app still be visible if I do this?
    How.com.vn English: Community Answer
    Community Answer
    Yes it is still visible, because it is not deleted. You could hide the file via external Software if you wanted.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Users can still run blocked EXE files by changing the files' names. This won't always work, but it's something to keep in mind.



      Advertisement

      About This Article

      How.com.vn English: Darlene Antonelli, MA
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Darlene Antonelli, MA. Darlene Antonelli is a Technology Writer and Editor for How.com.vn. Darlene has experience teaching college courses, writing technology-related articles, and working hands-on in the technology field. She earned an MA in Writing from Rowan University in 2012 and wrote her thesis on online communities and the personalities curated in such communities. This article has been viewed 266,998 times.
      How helpful is this?
      Co-authors: 10
      Updated: September 5, 2023
      Views: 266,998
      Categories: Windows Files
      Thanks to all authors for creating a page that has been read 266,998 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement