How to Block an Application or .EXE from Running in Windows

This wikiHow teaches you how to prevent an application from running on a Windows computer. Applications can be individually disabled from within the Registry Editor on any Windows computer. Open Start . Click the Windows logo in the...
Part 1 of 4:

Finding Your Program's Name

  1. How to Block an Application or .EXE from Running in Windows Picture 1How to Block an Application or .EXE from Running in Windows Picture 1
    Open Start
    How to Block an Application or .EXE from Running in Windows Picture 2How to Block an Application or .EXE from Running in Windows Picture 2
    . Click the Windows logo in the bottom-left corner of the screen. This will open the Start menu.
  2. How to Block an Application or .EXE from Running in Windows Picture 3How to Block an Application or .EXE from Running in Windows Picture 3
    Click . It's in the top-left corner of the Start menu. A pop-out menu will appear on the left side.
  3. How to Block an Application or .EXE from Running in Windows Picture 4How to Block an Application or .EXE from Running in Windows Picture 4
    Click All apps. This option is in the upper-left side of the Start menu.
  4. How to Block an Application or .EXE from Running in Windows Picture 5How to Block an Application or .EXE from Running in Windows Picture 5
    Find the program you want to block. Scroll down until you find the app icon for the program you want to block.
    1. You may need to click a folder to view the program's app icon. For example, if you want to block Notepad, you would scroll down and click the "Windows Accessories" folder to reveal the Notepad app icon.
  5. How to Block an Application or .EXE from Running in Windows Picture 6How to Block an Application or .EXE from Running in Windows Picture 6
    Right-click the program. Doing so prompts a drop-down menu.
  6. How to Block an Application or .EXE from Running in Windows Picture 7How to Block an Application or .EXE from Running in Windows Picture 7
    Select More. It's in the drop-down menu. This will open a pop-out window.
  7. How to Block an Application or .EXE from Running in Windows Picture 8How to Block an Application or .EXE from Running in Windows Picture 8
    Click Open file location. This option is in the pop-out window. Doing so opens the file location of the program's shortcut in File Explorer.
  8. How to Block an Application or .EXE from Running in Windows Picture 9How to Block an Application or .EXE from Running in Windows Picture 9
    Right-click the program's shortcut file. You'll find it in the File Explorer window. A drop-down menu will appear.
  9. How to Block an Application or .EXE from Running in Windows Picture 10How to Block an Application or .EXE from Running in Windows Picture 10
    Click Open file location. It's in the drop-down menu. This opens the program's actual file location.
  10. How to Block an Application or .EXE from Running in Windows Picture 11How to Block an Application or .EXE from Running in Windows Picture 11
    Right-click the program's icon, then click Properties. Doing so opens the Properties window for the program in question.
  11. How to Block an Application or .EXE from Running in Windows Picture 12How to Block an Application or .EXE from Running in Windows Picture 12
    Review the file'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.
    1. The extension will almost always be ".exe".
    2. For example, if you looked up the file location of Notepad, you'd find that its name is "notepad.exe".
  12. How to Block an Application or .EXE from Running in Windows Picture 13How to Block an Application or .EXE from Running in Windows Picture 13
    Remember the file's name and extension for later. This is what you'll plug into the Registry Editor in order to block the program.
Part 2 of 4:

Opening the Policies Folder

  1. How to Block an Application or .EXE from Running in Windows Picture 14How to Block an Application or .EXE from Running in Windows Picture 14
    Open Start
    How to Block an Application or .EXE from Running in Windows Picture 15How to Block an Application or .EXE from Running in Windows Picture 15
    . Click the Windows logo in the bottom-left corner of the screen.
    1. You'll want to do this on the user account for the person for whom you want to block this application.
  2. How to Block an Application or .EXE from Running in Windows Picture 16How to Block an Application or .EXE from Running in Windows Picture 16
    Type regedit into Start. Doing so searches your computer for the Registry Editor program.
  3. How to Block an Application or .EXE from Running in Windows Picture 17How to Block an Application or .EXE from Running in Windows Picture 17
    Click regedit. It's a blue cluster of cubes at the top of the Start window.
  4. How to Block an Application or .EXE from Running in Windows Picture 18How to Block an Application or .EXE from Running in Windows Picture 18
    Click Yes when prompted. This will prompt Registry Editor to open.
    1. If you aren't an administrator, you won't be able to open the Registry Editor.
  5. How to Block an Application or .EXE from Running in Windows Picture 19How to Block an Application or .EXE from Running in Windows Picture 19
    Navigate to the "Policies" folder. To do so:
    1. Double-click the "HKEY_CURRENT_USER" folder in the top-left side of the window.
    2. Double-click the "Software" folder below "HKEY_CURRENT_USER".
    3. Double-click the "Microsoft" folder.
    4. Double-click the "Windows" folder.
    5. Double-click the "CurrentVersion" folder.
  6. How to Block an Application or .EXE from Running in Windows Picture 20How to Block an Application or .EXE from Running in Windows Picture 20
    Click the "Policies" folder. It's in the list of folders below the "CurrentVersion" folder. Doing so will display the folder's contents in the window on the right side of the page.
Part 3 of 4:

Creating Folders for Blocked Programs

  1. How to Block an Application or .EXE from Running in Windows Picture 21How to Block an Application or .EXE from Running in Windows Picture 21
    Make sure there isn't already an "Explorer" folder. If you see a folder labeled "Explorer" in the "Policies" folder contents that are listed in the right-hand pane, you can skip ahead to the "Select the 'Explorer' folder" step of this method.
    1. If there isn't an "Explorer" folder, you'll need to create one.
  2. How to Block an Application or .EXE from Running in Windows Picture 22How to Block an Application or .EXE from Running in Windows Picture 22
    Click Edit. This tab is in the upper-left side of the Registry Editor window. Clicking it results in a drop-down menu.
    1. The menus in the upper-left side of the window apply to whichever folder is open at the time.
  3. How to Block an Application or .EXE from Running in Windows Picture 23How to Block an Application or .EXE from Running in Windows Picture 23
    Select New. It's at the top of the Edit drop-down menu. Selecting it prompts a pop-out window to appear.
  4. How to Block an Application or .EXE from Running in Windows Picture 24How to Block an Application or .EXE from Running in Windows Picture 24
    Click Key. This option is at the top of the pop-out window. A new folder will appear below the "Policies" folder on the left-hand side of the window.
  5. How to Block an Application or .EXE from Running in Windows Picture 25How to Block an Application or .EXE from Running in Windows Picture 25
    Type in Explorer and press Enter. This will create a new folder that's titled "Explorer" in the "Policies" folder.
  6. How to Block an Application or .EXE from Running in Windows Picture 26How to Block an Application or .EXE from Running in Windows Picture 26
    Select the "Explorer" folder. Click this folder in the left-hand column.
  7. How to Block an Application or .EXE from Running in Windows Picture 27How to Block an Application or .EXE from Running in Windows Picture 27
    Click Edit. It's in the upper-left side of the window.
  8. How to Block an Application or .EXE from Running in Windows Picture 28How to Block an Application or .EXE from Running in Windows Picture 28
    Select New. The pop-out menu will reappear.
  9. How to Block an Application or .EXE from Running in Windows Picture 29How to Block an Application or .EXE from Running in Windows Picture 29
    Click DWORD (32-bit) Value. This will create a new DWORD value inside of the "Explorer" folder.
  10. How to Block an Application or .EXE from Running in Windows Picture 30How to Block an Application or .EXE from Running in Windows Picture 30
    Type in DisallowRun and press Enter. Doing so renames your DWORD value as "DisallowRun".
  11. How to Block an Application or .EXE from Running in Windows Picture 31How to Block an Application or .EXE from Running in Windows Picture 31
    Double-click DisallowRun. This will open the "DisallowRun" value.
  12. How to Block an Application or .EXE from Running in Windows Picture 32How to Block an Application or .EXE from Running in Windows Picture 32
    Change the "DisallowRun" value to "1". Type 1 into the "Value data" field, then click OK.
  13. How to Block an Application or .EXE from Running in Windows Picture 33How to Block an Application or .EXE from Running in Windows Picture 33
    Select the "Explorer" folder. Click this folder in the left-hand column again.
  14. How to Block an Application or .EXE from Running in Windows Picture 34How to Block an Application or .EXE from Running in Windows Picture 34
    Create a new folder. Click Edit, select New, and click Key.
  15. How to Block an Application or .EXE from Running in Windows Picture 35How to Block an Application or .EXE from Running in Windows Picture 35
    Type in DisallowRun and press Enter. This creates a new folder inside of the "Explorer" folder titled "DisallowRun".
Part 4 of 4:

Adding a Program to Block

  1. How to Block an Application or .EXE from Running in Windows Picture 36How to Block an Application or .EXE from Running in Windows Picture 36
    Select the "DisallowRun" folder. Click this folder below the "Explorer" folder on the left side of the window.
  2. How to Block an Application or .EXE from Running in Windows Picture 37How to Block an Application or .EXE from Running in Windows Picture 37
    Create a new string value. Click Edit, select New, and click String Value.
  3. How to Block an Application or .EXE from Running in Windows Picture 38How to Block an Application or .EXE from Running in Windows Picture 38
    Type in 1 and press Enter. This will name your string value "1".
  4. How to Block an Application or .EXE from Running in Windows Picture 39How to Block an Application or .EXE from Running in Windows Picture 39
    Open the string value. Double-click the 1 string value to open it.
  5. How to Block an Application or .EXE from Running in Windows Picture 40How to Block an Application or .EXE from Running in Windows Picture 40
    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.
    1. For example, to block Notepad, you would type in notepad.exe here.
  6. How to Block an Application or .EXE from Running in Windows Picture 41How to Block an Application or .EXE from Running in Windows Picture 41
    Click OK. Doing so saves your string value. This string value will prevent the specified program from being opened.
    1. If you want to add subsequent string values for other programs, name them in numerical order (e.g., "2", "3", "4", etc.).
  7. How to Block an Application or .EXE from Running in Windows Picture 42How to Block an Application or .EXE from Running in Windows Picture 42
    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.
5 ★ | 1 Vote