Disable and Turn Off (or Enable or Turn On) Data Execution Prevention (DEP) in Windows Vista
Data Execution Prevention (DEP) is security feature that first introduced in Windows XP Service Pack 2 (SP2) and is included in Windows XP Tablet PC Edition 2005, Windows Server 2003 Service Pack 1 (SP1) and Windows Vista, plus future operating system. DEP is intended to prevent an application or service from executing code from a non-executable memory region. DEP is enforced by hardware technology that detects code that is running from the default heap and the stack and raises an exception to terminate the process when execution occurs, and software-enforcer that prevent malicious code from taking advantage of exception-handling mechanisms in Windows. In short, DEP perform additional checks on memory to prevent malicious code or exploits from running on the system by shut down the process once detected.
However, Data Execution Prevention may accidentally shut down legitimate process from valid applications or services, particularly third-party installers used by software developers that release their products for download through the Web, or software programs that are less commonly used. To make thing worse, DEP normally does not or fails to display or show any warning or information or acknowledgment message prompt that can let you know that DEP has shut down a process, thus causing you unaware of the reason why your setup file cannot run, or why your computer cannot start a service and etc.
Good news is that you can disable or turn off Data Execution Prevention (DEP) globally in Windows Vista. To stop the DEP protection, launch an elevated command prompt shell with administrative priviledges and credentials (log on to Windows Vista with a user account with administrator rights, and then right click on Command Prompt icon and select “Run as Administrator, or turn off UAC). Then execute the following command:
bcdedit.exe /set {current} nx AlwaysOff
If you regret your decision and now wants to enable or turn back on the DEP protection for your Windows Vista, simply use the following command instead:
bcdedit.exe /set {current} nx AlwaysOn
Related Articles
- How to Verify Data Execution Prevention is Enabled or Disabled in Vista
- Disable or Turn Off (Or Enable and Turn On) Windows Vista Internet Explorer 7 (IE7) Protected Mode
- How to Enable and Turn On Hibernation Feature in Windows Vista
- How to Turn Off and Disable Windows Flip 3D Switcher in Vista
- Disable and Turn Off System Restore (Shadow Copy) in Windows Vista
- How to Turn Off and Disable Hibernation in Windows Vista
- How to Disable or Enable (Turn On or Off) Windows 7 Snap Automatically Maximize and Arrange Window
- How to Enable or Disable (Turn On or Off) Desktop Preview in Windows 7
- Turn On and Enable UPnP or Network Discovery in Windows Vista
- Turn Off or Disable User Account Control (UAC) in Windows Vista










































November 28th, 2009 12:44
it does not work
November 6th, 2009 01:53
omg i followed your instructions and it didnt work, then i found out how to do it the normal way through selecting certain programs for DEP to ignor but it wont let me put a check on either box and i think its becuase of the command prompt. i tried to set it back on again and it said it couldnt do it acces deinied or something. HELP!!
November 5th, 2009 04:50
its still not letting me publish i have got to the part of pasting – bcdedit.exe /set {current} nx AlwaysOff – in but were do i go from there? there isnt anything saying update or whatever
November 5th, 2009 04:45
were is this command prompt etc
October 15th, 2009 15:25
[...] Data Execution Prevention (DEP) is disabled either in the BIOS or in the operating system. [...]
October 15th, 2009 05:22
DUDE YOU ARE AWSOME THANKS SOOOO SOOOO MUCH
October 2nd, 2009 17:24
wow! thanks! it actually worked for me Vista Ultimate! Now, i can play Starcraft again! LOL