Several options for disabling DEP in Windows. How to disable DEP Windows for all programs or an individual application Disabling DEP through the registry

Sometimes Windows users are unable to open a particular utility or game due to the DEP function, which blocks its launch. What is hidden under this abbreviation? Is it possible to disable this Windows tool and how? Let's take a closer look at several effective methods.

What is DEP and what is it for?

The English abbreviation DEP stands for Data Execution Prevention. Translated into Russian - “Data Execution Prevention”. This is a special set of both hardware and software, the purpose of which is to provide the computer with additional protection against dangerous malware.

How does the DEP function work? It checks the device's random access memory (RAM) and its contents. When a virus created to work in RAM gets onto a PC, it wants to start the process of executing its own codes in the system area of ​​RAM. In this case, DEP immediately detects that the memory area, which is intended for the Windows system itself and authorized utilities, is being used incorrectly by some unknown program (virus). As a result, the option blocks (prevents) its launch and notifies the user about this in a special message window.

DEP protects your computer from viruses by blocking their execution in the PC system memory

Thus, DEP is able to repel many virus attacks. The function cannot be considered as a complete replacement for antivirus. If the latter fails to cope with its task for one reason or another, DEP technology is used.

In practice, this concept means the default installed Windows function, something like an antivirus, but in fact it is not considered one. It blocks programs that want to use part of the RAM for their work, which is marked by the operating system as “unused”.

Dmitry Vassiyarov

http://profi-user.ru/dep/

How to disable DEP on Windows 10

You should only disable the described service if your antivirus works effectively: it prevents malware from entering the system. Deactivation will help launch those utilities that for some reason were accepted by DEP as viruses, although in reality they are not.

Disable for all utilities

It is not possible to disable DEP technology completely in the settings, since this is an important system process for ensuring security. To do this, you need to use the standard Windows tool - “Command Line”.

  1. Click on the magnifying glass icon on the “Taskbar” to the right of the “Start” button. We print a short cmd request. You can also type "Command Prompt". Type cmd in the search bar
  2. Now click on the desired item in the results with the right mouse button and in the gray menu select the first option “Run as administrator”. Select the first item in the gray menu “Run as administrator”
  3. In the small window, click on “Yes” to allow Command Prompt to make changes on the computer.
    Click “Yes” to allow Command Prompt to make changes to your computer
  4. In the black editor, paste the previously copied command: bcdedit.exe/set (current) nxAlwaysOff. For the system to be able to execute it, press Enter on the keyboard.
    Paste the code bcdedit.exe /set (current) nxAlwaysOff into the “Command Line”
  5. The window will immediately inform you that the operation was completed successfully.
  6. Close the black editor and be sure to restart the device, as only after this the option will stop working.

Video: completely turn off DEP

Deactivation for individual applications

It is still recommended to opt for a selective shutdown if DEP prevents certain utilities from running, since a complete shutdown will expose your computer to the risk of infection. You must also be sure that these programs are safe. You can turn off additional protection in its settings (in the “Performance Options” window), as well as in the “Registry Editor”.

Configuring exceptions for DEP

We will add exceptions in the form of utilities in the Windows “Performance Options” system window. It opens through the “Control Panel”. Let's describe the process in detail:

  1. Launch the Control Panel window on your screen. You can find this service in Start. If it is not there, hold down the Win and R keys, and in the “Open” line, enter a simple control code. Now press Enter on your keyboard or OK in the “Run” window itself under the line.
    Write the control command in the “Open” field and click OK
  2. On the panel, immediately open the “System” section.
    Open the "System" section in the "Control Panel"
  3. You can launch the same window using the context menu of the “This PC” shortcut, which is located on the “Desktop”: just right-click on it and select the last item “Properties”.
  4. A new page will open. On the left side, click on the link “Advanced system settings”.
    Click on the link “Advanced system settings”
  5. In the new window you will immediately be taken to the desired “Advanced” tab. Here we click on the “Options” button in the very first block “Performance”. Click on the “Options” button in the “Performance” section
  6. Another window will appear on the screen, in which you need to go to the large top tab “Data Execution Prevention”. By default, the first option is activated. Your task is to place a mark next to the second one. Click on the second item “Enable DEP for all programs and services except those selected below”
  7. You will immediately notice that the “Add” button has become clickable. We immediately click on it. In the window that opens on top of the main one, indicate the path to the executable file of the utility (with the extension .exe) for which you want to disable the DEP option. Select the executable file of the program you want to add to the exception
  8. It is worth noting that not all utilities can deactivate DEP protection. If it cannot be disabled, a corresponding message will appear on the screen when adding a program. Here you just need to click OK. If this utility does not want to start due to DEP being enabled, scan it with your antivirus. If no malware is found, try deactivating the option completely using the Command Prompt.
    The program cannot be included in the list of exceptions, since the DEP function must be enabled for it
  9. Click OK and reboot the device.

Disabling using Registry Editor

This method is a little more complicated than the previous one, since it involves independently creating entries in the editor window, each of which will correspond to an exception program. So that you don't get confused, let's look at all the steps in detail:

  1. Call up the universal command window again called “Run” (Win + R key combination). In the “Open” line, this time we write the regedit code, which launches the “Registry Editor”. Click on OK or press Enter to execute the command.
    Type the command regedit in the Run window
  2. Click on “Yes” to allow the editor to change any parameters on the computer.
  3. In the left panel of the editor, double-click on the third main branch called HKEY_LOCAL_MACHINE.
    Open the third main branch HKEY_LOCAL_MACHINE on the left side of the editor window
  4. Now, in turn, double-click the following blocks: SOFTWARE - Microsoft - Windows NT - CurrentVersion - AppCompatFlags - Layers.
    Open the Layers folder, and if it doesn’t exist, create it
  5. If you didn't find the last Layers object, you'll need to create it yourself. To do this, right-click on the previous AppCompatFlags block and in the list of available options, select the second item “Create”, and then “Section”. Give it an appropriate name.
    Click on “Create” in the context menu, and then on “Section”
  6. In the Layers folder, create a “String parameter” using the context menu: right-click on the field free of entries on the right side of the window.
    Click on “Create” and then on “String Parameter”
  7. The parameter name must be the path to the utility executable file. Copy it from the address bar in Windows Explorer.
    Paste the path into the title and add the filename
  8. Double-click the created parameter to launch it. In the value field enter the following: DisableNXShowUI.
    Set DisableNXShowUI as the parameter value

How to enable DEP on Windows 10

The method you choose to turn DEP back on depends on what method you used when you disabled the option. Let's consider all the options.

Via "Command Line"

If you used the “Command Line”, that is, deactivated all utilities at once, you will not be able to activate additional DEP protection through the “Control Panel”, because the very “Data Execution Prevention” section will simply be missing in the window. What to do in this case?


Via "Control Panel"

If you turned off DEP for individual applications in the Performance Options window and now want the feature to work for them again, do the following:


In the Registry Editor

If you created settings for individual programs in the Registry Editor, the procedure for activating the DEP protection tool will look like this:


The DEP function is a “protection” of the system against the launch of viruses. In some cases, it may mistakenly mistake benign programs used by a Windows 10 client for malware. If you trust these utilities, set them as an exception in the “Security Options” window or in the “Registry Editor” - the option will no longer work for them. You also have the right to disable the function completely via the Command Line, but in this case you take responsibility for the security of your computer: if a virus code gets onto your device, it will start with DEP turned off.

How to disable DEP in Windows 10. DEP - DataExecutionPrevention is a special system function that allows you to prevent the execution of program code in non-executable memory segments. In other words, it prevents malware or viruses from entering your computer.
This feature prevents some applications from performing their tasks and may cause loading errors.
Most often this happens with games, such as FIFA 18 - as a result of DEP being enabled, an error appears - “The memory cannot be read or written”, or “An error occurred when accessing the address...”
Disabling Dep in Windows can be done completely or selectively, for certain programs with which problems arise.

How to disable DEP in Windows 10 for certain programs

The best method would be to disable the function only for those applications that cause an error when loading them. This can be done by adjusting OS settings or by editing data in the registry.
To use the first option, you will need to do the following:
1. Select the system icon in the computer control panel.
2. Press "Extra options…".

3. Select a section "Additionally".
4. Press "Options".
5. In the next window, select “Enable DEP for all programs...”
6. Add the program to exceptions using the button of the same name.
7. When finished adding, click “OK”.

Once this procedure is complete, you will need to restart your computer for the new settings to take effect.

Disabling DEP in Windows 10 from the registry

This option is the same action as the previous one, but it is done by editing the settings in the OS registry. The method is less convenient to use than the previous one, but it is necessary to mention this possibility.
To disable DataExecutionPrevention Using the operating system registry, follow these steps:
1. Use the Win+R combination to open the window "Run."
2. In the line that appears, enter "regedit" and press Enter.
3. In the editor, go to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
4. Create a parameter whose name will be the path to the application.
5. Set it to a value DisableNXShowUI.

Using this method, the DEP function will be disabled for all applications without exception. To do this you will need to perform the following operations:
1. Launch the command line with administrator privileges.
2. Enter the following code into it: bcdedit.exe /set (current)nxAlwaysOff and press Enter.

3. Then you will need to restart your PC, after which the function will be disabled.
So that if necessary turn DEP back on, you can use a slightly modified command in which you need to change AlwaysOff to AlwaysOn . It will look like this: bcdedit.exe /set (current) nxAlwaysOn

There are times when we run any application in Windows, the system returns an error message indicating what happened access violation exception. This type of error means that some part of the code of the program or application you are trying to run tries to access a protected memory address and she was denied access. To solve this error, you need to disable Data Execution Prevention or DEP- This is a windows security tool. Below we will look at the methods if an access rights violation exception error appears in Windows.

Fixing an access violation exception when running an application in Windows

Method 1. DEP helps protect our computer by controlling the programs that run to ensure that system memory is used in a protected manner. Therefore, if any application or program tries to run memory code incorrectly, the DEP tool automatically blocks access to that program or application. Thus, disabling it can help us in solving this “access violation” error, provided that this program or application is safe and will not be able to introduce virus code into the system.

  • To disable Data Execution Prevention or DEP, press Win + R and enter in the execution bar control system.
  • Next, in the window that opens, click on the item on the left Advanced System Settings.

  1. Go to the tab Additionally and in the performance section click Options.
  2. Go to the tab Data Execution Prevention and select Enable DEP for all programs and services, except those selected below.
  3. Select your program or application on the specified executable ".exe" file that is throwing the "Access Violation Exception" error.
  4. Click Apply and OK and restart your program or game that was throwing the error.

Method 2. In case the error continues, we can run hardware troubleshooter. To do this, click win+R to open the Run window and enter the following command:

  • %systemroot%\system32\msdt.exe -id DeviceDiagnostic

  • Click Further and all errors and problems on the computer will be diagnosed. Wait until the process completes.
  • If this does not help you, then I advise you to go to the official website of the product, program, game and update to the latest version or download for a clean installation again.

Starting with WIndows XP, Microsoft operating systems support hardware protection of the ExecuteDisabled (Intel) and NoExecute (AMD) standards. Microsoft collectively called support for these hardware instructions DEP (in Russian - “Data Execution Prevention”). The purpose of the function is to prevent program code read from some areas of RAM from becoming executable. In plain language, this is how one of the ways of infecting a computer with viruses is blocked. The function is certainly useful, but some programmers, when writing their “masterpieces,” do not take into account the specific behavior of the program when such protection is enabled. As a result, a simple user receives the error “Memory cannot be read/write.” If you encounter a similar problem and are absolutely sure that the program is not malicious, you can try disabling DEP protection. This will weaken the security somewhat, but will probably allow you to use the program. I will describe how to disable hardware data execution prevention later in this post.

If you have one or more programs that conflict with DEP, it is recommended to disable protection only for them, without affecting the behavior of the system as a whole. To do this, do the following:


Please note that selectively disabling DEP is only possible for 32-bit programs. When you try to whitelist a 64-bit application, you will receive an error message.
If you absolutely need to run a 64-bit program bypassing DEP, the only way out is to disable protection completely for all applications on the system. How to do this will be discussed a little later.

Disabling DEP through the registry

The second way to disable DEP protection for an individual program is to edit the registry. The steps required for this are:


If you have many programs that are incompatible with the code execution prevention system, or if among them there is at least one 64-bit one, you will have to disable DEP completely. The instructions are as follows.

What is DEP? From the English Data Execution Prevention, which translates as “Data Execution Prevention.” Essentially, it is a security feature built into various operating systems, including Windows. The function protects the system from some viruses, Trojans and other security threats; however, it should never be confused with an antivirus or an antivirus utility.

DEP is not an antivirus. DEP marks individual service areas in the computer's RAM as “non-executable”. If a program tries to execute code in this area, the function will fire, so the program will close and the user will see a message. Why was this done? It's simple: some malicious programs work using this algorithm, so forcing the application to close allows you to avoid an attack.

Of course, no one recommends disabling DEP and I am part of the same cohort of people. The problem is that in isolated cases, DEP can “interfere” with applications on the computer, so sometimes this function still has to be disabled. It is better to do this temporarily, not forgetting to turn on DEP later. The feature works on Windows 7, 8 and 8.1.

How to disable DEP for the entire system?

The easiest way is . To do this, click “Start” and in the “Search programs and files” line write cmd. A program shortcut will appear at the top of the window. Right-click on it and select “Run as administrator.”

A command prompt window will appear. Add the following line to it:

bcdedit.exe /set (current) nx AlwaysOff

Press Enter.

After you see the message “Operation completed successfully” in the command prompt window, close the window and restart your computer for the changes to take effect. This method allows you to disable DEP for all services or programs.

How to disable DEP for an individual program?

If you only want to disable DEP for a specific program, we'll take a different route.

Find the “Computer” icon on your desktop (if you don’t find it, click on the “Start” button and look to the right side of the window), right-click on it and select “Properties” from the menu. A window will open to view basic information about your computer. On its left side there is a small menu in which we are interested in the “Advanced system parameters” item. Click.

A window opens. On the “Advanced” tab, click the “Options” button.

Another window will open. In it, select the “Data Execution Prevention” tab. Check the box next to “Enable DEP for all programs and services except those selected below,” and use the “Add” button to add program files (.exe) that you want to disable.

Don't forget to click OK when your selection is complete.

Another similar method, but only using . Open the registry editor (WIN+R, enter the word regedit in the window and press Enter). We follow the path HKEY LOCAL MACHINE - SOFTWARE - Microsoft - Windows NT - CurrentVersion - AppCompatFlags - Layers. If there is no Layers item, no problem, create it yourself. Then create a string parameter in it, the name of which is the path to the executable file of the program, and specify DisableNXShowUI as the value.

I highly recommend not using this method (with the registry editor), lest you accidentally change the registry where it is not needed, so you take responsibility for performing this action.

How to enable DEP on Windows?

Everything is simple here. Run Command Term as administrator and write:

bcdedit.exe /set (current) nx OptIn

Reboot the computer. All.

Share with friends or save for yourself:

Loading...