Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > Tutorials

Vista Tutorial - DEP - Turn On or Off for Programs

Comment
 

DEP - Turn On or Off for Programs

Published by Brink
05-24-2007

How Turn DEP On or Off for a Program in Vista
Information
  Data Execution Prevention (DEP) is a security feature that can help prevent damage to your computer from viruses and other security threats. Harmful programs can try to attack Windows by attempting to run (also known as execute) code from system memory (RAM) locations reserved only for Windows and other authorized programs. These types of attacks can harm your programs and files. If DEP notices a program on your computer using memory incorrectly, it closes the program and notifies you with the DEP stop error. DEP is ran in a software mode and in a hardware mode. If your processor supports DEP (NX for AMD, and XD for Intel), then you will have hardware and software DEP. If it doesn't, then Vista will just use software DEP. 64 bit applications will have DEP enabled all the time by default, but 32 bit applications do not and must have DEP manually enabled for them. For more information, see: Windows Help and Support: Data Execution Prevention: FAQs
NOTE
  If you choose to protect all programs, you can still turn off DEP for individual programs if you know that they are safe. If a program does not run correctly when DEP is turned on, check for a DEP compatible version of the program or an update from the software publisher before you change any DEP settings.
WARNING
  Do not disable DEP, or exclude (OptOut) a program, unless you have adequate protection and are having problems only with a known safe program that DEP will not let run and you cannot live without it.


Adequate Protection:
  • Antivirus program with realtime scanning (EX: Avast or AVG are good ones)
  • A spyware/adware program with realtime scanning (EX: Windows Defender, Spybot Search and Destroy)
  • Enable Vista UAC (User Account Control). It asks you for permission first for anything that wants to run with full access to the computer.
RELATED LINKS:


Here's How:
NOTE
  64 bit programs will always have DEP turned on. You cannot change this.
1. Open the Control Panel. (Classic View)
A) Click on the System icon.

B) Go to step 3.
OR

2. Open the Start menu.
A) Right click on Computer and click Properties.
3. Click on Advanced system settings.(in upper left green area)

4. Click on the Continue button in the UAC prompt.

5. Click on the Settings button under Performance section. (See screenshot below)
properties.jpg
6. Click on the Data Execution Prevention tab. (See screenshot below)

7. Turn DEP On for Essential Windows Vista Programs and Services Only -
NOTE: This turns on DEP for only the 32 bit system programs and services. This is the default setting.
A) Dot Turn on DEP for essential Windows programs and services only.

B) Go to step 9.
8. Turn DEP On for All Programs and Services Except for the Ones you Select -
NOTE: This turns on DEP for every 32 bit program except for the ones that you add to the list. The listed program will have DEP turned off for it.
A) Dot Turn on DEP for all programs and services except those I select.

B) Click Add to add the programs (32 bit) that you do not want to use the DEP feature.
options.jpg
C) Navigate to the program's .exe file that you want to add to the DEP exclusion list and select it, then click on Open.
browse.jpg
9. Click on OK to apply. (See screenshot below step 8B)

10. Restart the computer to apply changes.
That's it,
Shawn

Published by
Brink's Avatar
Administrator

Join Date: Apr 2007
Location: Texas, USA
Posts: 25,806
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools

Applies to
All Vista Versions
64 Bit & 32 Bit

Old 08-01-2007  
Crest
Newbie


Join Date: Aug 2007
Vista Ultimate x86 OEM
 
 

DEP - Enable or Disable

I know this is a pretty big bump. However I came across this post from searching on Google about Disabling DEP temporarily. I have a old game that seemed to get blocked by DEP all the time.

I tried what you said with CMD and I disabled it. it said Success. I rebooted. And it worked. However the app was unstable and too time consuming so I uninstalled it.
So I did the same thing with the CMD.exe. But used the "alwaysOn" approach and it said Success. But now my DEP settings are still greyed out.

I'm using Vista x86 Ultimate. It's completely up to date.
I'm using AVG Anti-Virus as well.

System Restore didn't do the trick either. Any Ideas? Thanks.

My System SpecsSystem Spec
Old 12-21-2007  
dblack
Newbie


Join Date: Dec 2007
Vista Ultimate x64
 
 

Re: DEP (Data Execution Prevention)

If your DEP option is disabled (greyed out) in IE Settings, you haven't opened IE in "Administrator mode". Note that the DEP option is not listed in IE Settings if you are specifically running the Internet Explorer 64-bit version listed in Start | Programs.

Even if your User Account is an Administrator, Vista runs every program as a "normal/non-admin user" for additional security. I'm pretty sure that this additional security measure is independent of the User Account Control (UAC) setting that you use. I don't believe that there is anyway to diable this security feature. The only way (TMK) to specifically run a Program in "Administrator mode" is to right-click the icon or executable and select "Run as administrator". If you create a shortcut to a program and you always want to run the program in "administrator-mode" you can enable this by right-clicking the shortcut | Properties | Shortcut Tab | Advanced Button and click "Run as Administrator".

So, to disable DEP in IE, you must right-click the IE icon and select "Run as administrator".

*** Note that when you are installing programs you should always run the Setup or Install program in administrator-mode ***

HTH!
My System SpecsSystem Spec
Old 12-21-2007  
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP2, Windows 7 (7600) x64
 
 

Re: DEP (Data Execution Prevention)

Hi dblack,

Welcome to the forum.

Thank you for adding this information for the tutorial on IE7. The tutorial has been updated to include this.

Shawn
My System SpecsSystem Spec
Old 01-11-2008  
RavenWing71
Newbie


Join Date: Jan 2008
Vista Home Premium 32bit
 
 

Re: DEP (Data Execution Prevention)

Quote  Quote: Originally Posted by Crest View Post
I know this is a pretty big bump. However I came across this post from searching on Google about Disabling DEP temporarily. I have a old game that seemed to get blocked by DEP all the time.

I tried what you said with CMD and I disabled it. it said Success. I rebooted. And it worked. However the app was unstable and too time consuming so I uninstalled it.
So I did the same thing with the CMD.exe. But used the "alwaysOn" approach and it said Success. But now my DEP settings are still greyed out.

I'm using Vista x86 Ultimate. It's completely up to date.
I'm using AVG Anti-Virus as well.

System Restore didn't do the trick either. Any Ideas? Thanks.
I am suspitious of the instructions on this page. From my experience with WindowsXP I would think that the proper command to turn DEP back on would be...
bcdedit.exe /set {current} nx OptIn
Has anyone tried this command instead?
My System SpecsSystem Spec
Old 01-12-2008  
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP2, Windows 7 (7600) x64
 
 

Re: DEP (Data Execution Prevention)

Hi RavenWing71,

Welcome to Vista Forums.

Thank you for pointing out this error. It should be bcdedit.exe /set {current} nx OptIn instead of
bcdedit.exe /set {current} nx AlwaysOn. The tutorial has been updated to reflect this.

DEP - Enable or Disable

Thank you,
Shawn
My System SpecsSystem Spec
Old 09-13-2008  
matt531320
Newbie


Join Date: Sep 2008
Vista Home Premium 32bit
 
 

Unhappy Re: DEP - Turn On or Off for Programs

When i try to open the program up, it's grayed out (attached file) and even when i do it in command prompt (administrator mode) it'll say it's successful, but the program won't work. It'll still give me a DEP error message, even if i restart my PC. HELP!!!

dep.jpg
My System SpecsSystem Spec
Old 09-13-2008  
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP2, Windows 7 (7600) x64
 
 

Re: DEP - Turn On or Off for Programs

Hello Matt, and welcome to Vista Forums.

It looks like DEP has been disabled. See if enabling DEP again from this tutorial (step 5) will allow you change your DEP settings afterwards.

DEP - Enable or Disable

Hope this helps,
Shawn
My System SpecsSystem Spec
Old 09-13-2008  
matt531320
Newbie


Join Date: Sep 2008
Vista Home Premium 32bit
 
 

that didn't work, by the way.
but thanks for help


i got it to work, after a heck of research. use:

bcdedit.exe/set nx AlwaysOff
bcdedit.exe/set nx AlwaysOn

to disable and enable DEP. I've tried it and it works, disabling and enabling.
if you've been having problems, try this.
My System SpecsSystem Spec
Old 09-13-2008  
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP2, Windows 7 (7600) x64
 
 

Re: DEP - Turn On or Off for Programs

Thank you for the feedback Matt. I have included the AlwaysOn as a secondary option in the tutorial.

Shawn
My System SpecsSystem Spec
Comment

Tutorial Tools


Similar Threads
Tutorial Category
Why in Vista Ultimate am I unable to turn on "Internet Information Services" in the turn windows features on or off ? Vista security
Vista Ultimate x64: turn off display, will not turn back on General Discussion
Turn Off Display - but, it will not turn back on, must reboot Vista General
How do you turn off comformatios when Lauching certain programs Vista General
how to turn of hightlighting newly added programs in vista Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
Tutorial powered by GARS 2.1.8m ©2005-2006

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46