Data Execution Prevention (DEP) is a memory protection feature in Windows. It checks and protects several areas of memory and helps prevent them from executing malicious code. In turn, it can help prevent viruses and other security threats from causing damage to your computer. It prevents code from running from the default heap, stack and memory pool. If an application attempts to execute or run code from a protected page, the application receives an exception error with a status code. DEP is helpful, but sometimes problems can arise when it doesn't work as expected. DEP is established in 64-bit programs. Most programs that cause DEP problems are 32-bit programs. In this article, let us see how to enable or disable DEP feature in Windows.
Step 1: Use Windows E keys together to open Windows Explorer (File Explorer)
Step 2: On the left, right-click "This PC"
Step 3: Click from the list that appears Properties
Step 4: In the settings window that opens, click Advanced System Settings
# on the right side of##Step 5: Open the system properties window there. Go to the Advanced tab ## Step 7: In the Performance Options window, go to the
Data Execution Prevention tab
Step 8: To turn on DEP for Windows Services and Programs, click the radio button next toStep 9: To turn on DEP for all programs except a few selected programs, click the radio button next to Turn on DEP for all programs except the ones I selected
Step 10:
The "Add" button will be enabled, click on it
Step 11: InFind range In the drop-down list, select the local disk of C drive (C:)
Step 12: Double-click the
program file (wherever you want to How to enable or disable Data Execution Prevention (DEP) on Windows 10/11 the program How is the path)
Step 13: You can scroll and select the required program.
ClickProgram Executable file, then click
to open.For example, I selected the 7-zip application as an exception here. After applying the settings, 7-zip will run outside DEP protection, while all other compression will run inside DEP protection. Step 14: The selected program will be listed in the Performance Options window Step 15: If you want to How to enable or disable Data Execution Prevention (DEP) on Windows 10/11 another program to the exceptions list, please Click Add again and follow the same steps [Steps 11-14]Step 16: ClickApply and then clickOK
”Step 17:
Restartthe computer and turn on/enable DEP for the program.
Note: The methods mentioned below should only be used during troubleshooting or debuggingDisable or turn off DEP (Data Execution Prevention) completely
Step 1: Open Command Prompt as
administrator. To do this, type cmd in the window search bar, then hold down the
Ctrl Shift Step 2: The User Account Control window will open, click Yes Step 3: In the command prompt type the following command and press Enter key bcdedit.exe /set {current} How to enable or disable Data Execution Prevention (DEP) on Windows 10/11 AlwaysOff
Step 4: Restart the
computer, DEP will disable all programs.Enable or turn on DEP (Data Execution Prevention)
Step 1: OpenCommand Prompt as
Administrator. To do this, type cmd in the window search bar, then hold down the
Ctrl Shift Step 2: The User Account Control window will open, click Yes Step 3: Type the following command in the command prompt and press Enter keybcdedit.exe /set {current} How to enable or disable Data Execution Prevention (DEP) on Windows 10/11 AlwaysOn
Restart the computer and DEP will be enabled for all programs.
Note: Once DEP is set to always on or always off, it cannot be changed using the Data Execution Prevention tab in System Settings. So let's see how we can bring the radio button back into the DEP tab and make it available again
步骤1:以管理员身份打开命令提示符。为此,请在窗口搜索栏中键入cmd,然后按住Ctrl + Shift键并按回车键
步骤2:用户帐户控制窗口将打开,单击是
步骤3:在命令提示符下键入以下命令并按回车键
bcdedit.exe /set {current} How to enable or disable Data Execution Prevention (DEP) on Windows 10/11 OptIn
步骤4: 重新启动计算机,DEP选项卡中的单选按钮将再次访问。
有关信息:
BCDedit.exe 是用于编辑启动配置数据的主要工具。
/set 命令在 Windows 启动配置数据中设置启动项选项值。
{当前} 当前启动项的标识符为 {current},它告知 bcdedit 使用当前正在使用的启动配置。
How to enable or disable Data Execution Prevention (DEP) on Windows 10/11 是 no-execute 的缩写形式,是引导配置中 DEP 的设置名称。
选择加入仅为操作系统组件启用 DEP。
始终关闭禁用 DEP。
始终在线为操作系统和所有进程启用 DEP。
The above is the detailed content of How to enable or disable Data Execution Prevention (DEP) on Windows 10/11. For more information, please follow other related articles on the PHP Chinese website!