|
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 Vista tutorial section that covers a wide range of tips and tricks.
| Vista Tutorial - DEP - Enable or Disable DEP - Enable or Disable
How to Enable or Disable DEP in Vista
Published by Brink
01-12-2008
| | How to Enable or Disable DEP 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 a program is being closed by DEP, then make sure that it is a DEP compatible version and check for an updated version. If it is not DEP compatible, then you can uninstall the program or turn off DEP for that particular program. See: How to Turn DEP On or Off for a Program |  | 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. Remember DEP stopped the program for a reason. Either it is just a improperly running program, or some sort of malware trying to get into restricted memory. 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's UAC (User Account Control). It asks you for permission first for anything that wants to run with full access to the computer.
|  | RELATED LINKS: EXAMPLE: DEP Enabled and Disabled NOTE: DEP is enabled by default.   | OPTION ONE: |
|---|
| To Enable or Disable DEP in Vista |
1. Open a elevated command prompt. 2. To Enable DEP - A) In the elevated command prompt, type bcdedit.exe /set {current} nx OptIn and press Enter. (See screenshot below) NOTE: If for some reason this command does not enable DEP after restarting the computer, then use the bcdedit.exe /set {current} nx AlwaysOn command instead.
B) You should get a success message back
C) Close the elevated command prompt.
D) Restart the computer to apply.
3. To Disable DEP - A) In the command prompt, type bcdedit.exe /set {current} nx AlwaysOff and press Enter. (See screenshot below)
B) You should get a success message back.
C) Close the command prompt.
D) Restart the computer to apply.
4. To Verify the Status of DEP - A) In the command prompt, type wmic OS Get DataExecutionPrevention_SupportPolicy and press Enter. (See screenshot below table)
B) You will get a number (see table below) that will tell you the status of DEP.
C) Close command prompt when done. NOTE | | 2 is the default setting. | Number | Description | Status |
|---|
| 0 | AlwaysOff | DEP is disabled for all processes. (Step 3 above) | | 1 | AlwaysOn | DEP is enabled for all processes. (Note under step 2) | | 2 | OptIn | DEP is enabled for only Windows system components and services have DEP applied. Default setting. (Step 2 above) | | 3 | OptOut | DEP is enabled for all processes. Administrators can manually create a list of specific applications which do not have DEP applied. (How to Turn DEP On or Off for a Program) | |  | 
| OPTION TWO: |
|---|
| How to Enable or Disable DEP for IE7 |
NOTE | | This will be for the 32 bit version of IE7. This is enabled by default in the 64 bit IE7 version. DEP is disabled by default in the 32 bit IE7. The .exe file for the 32 bit version of IE7 is located at:- For a 32 bit Vista version: C:\Program Files\Internet Explorer\iexplore.exe
- For a 64 bit Vista version: C:\Program Files (x86)\Internet Explorer\iexplore.exe
|  | 1. Open the Start Menu. 2. Click on All Programs and right click on Internet Explorer, then click Run as administrator. NOTE: If you cannot get IE7 to open using step 2, then click on All Programs and Accessories. Next, right click on Internet Explorer (No Add-ons) and click on Run as administrator instead. WARNING: If you do not use Run as administrator, the Enable memory protection to help mitigate online attacks option will be grayed out in steps 5 and 6 below, and you will not be able to enable or disable it. 3. In IE7, click on Tools and Internet Options. 4. Click on the Advanced tab. (See screenshot below) 5. To Enable DEP for the 32 bit IE7 -A) Under Security, check Enable memory protection to help mitigate online attacks.
B) Go to step 7. 6. To Disable DEP for the 32 bit IE7 -A) Under Security, uncheck Enable memory protection to help mitigate online attacks. 7. Click on OK to apply.
That's it,
Shawn |  Published by | | | Administrator Join Date: Apr 2007 Location: Texas, USA
Posts: 23,763
Rep Power: 150 | |
 Tutorial Tools | | |
 Applies to | | All Vista Versions | | 64 Bit & 32 Bit | |
| | | | | |
02-27-2008
|
| | Technophile Wannabe Vista 64-bit Ultimate Win. 7 64-bit 7229 Win. Server 2008 XP SP3 32-bit Pro The Lowcountry | Re: DEP - Enable or Disable Hi Brink. A few days ago I enabled Dep in IE7. No problems, I did have to deal with a couple ad-ons, no problems. IE7 runs fine now.
You'r Tutorials are great.
I ran SpyBot S&D today for the first time since DEP enable, it came up with this and I want to make sure it's the DEP value before I deal
with (or not) it! Attachment 2981
When ever you have time for a reply. I thank you very much
Later
Last edited by Bare Foot Kid; 04-16-2008 at 09:50 PM..
| My System Specs | | System Manufacturer/Model Number * BFK Customs * OS Vista 64-bit Ultimate Win. 7 64-bit 7229 Win. Server 2008 XP SP3 32-bit Pro CPU Intel C2Q 9550 Yorkfield Motherboard ASUS P5Q Pro Memory 8GB Dominator 8500C5D Graphics Card XFX ATI 1GB 4870 XXX Sound Card Realtek HD 7-1 Monitor(s) Displays 1x 47" LCD HDMI & 2x 26" LCD HDMI Screen Resolution 1920x1080P & 1920x1200 Keyboard HP Enhansed Multimedia Mouse Razer Diamondback 3G PSU Corsair 620HX Case CM Cosmos RC-1000 Cooling Tuniq Tower 120, 2x 140mm and 3x 120mm case fans Hard Drives 2x 500GB 7200RPM 32MB Cache WD Caviar Black Internet Speed 16Mb/s Other Info My First Build ;)
02-27-2008
|
| | Administrator Vista x64 Ultimate SP2 Texas, USA | Re: DEP - Enable or Disable Hi Bare Foot Kid,
From the location in the registry and the name value, I would say that it is most likely from the DEP being enabled for IE7. I would not worry about it.
Shawn | My System Specs | | System Manufacturer/Model Number Custom OS Vista x64 Ultimate SP2 CPU Core2 Quad Q9450 2.66GHz 12MB Motherboard Gigabyte X48-DQ6 Memory 8 GB (4x2) DDR2 PC2-8500 1066 MHz Patriot Extreme Graphics Card BFG GeForce 9600 GT OC 512MB Sound Card Realtek HD Audio ALC889A Integrated Chip Monitor(s) Displays 28" Hanns-G HG281DJB and 17" eMachines E17T4 Screen Resolution 28" 1920x1200 and 17" 1280x1024 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU Antec NeoPower 500 Watt Case Tagan El-Diablo Full Tower Cooling 250 mm Front, 360 mm Side, stock CPU, 120 mm SiLenX Rear Hard Drives 64GB Patriot SSD (v2)
750GB Samsung HDD HD753LJ SATA 32MB Internet Speed 3382 kb/s Download and 312 kb/s Upload Other Info Creative WebCam Instant
02-27-2008
|
| | Technophile Wannabe Vista 64-bit Ultimate Win. 7 64-bit 7229 Win. Server 2008 XP SP3 32-bit Pro The Lowcountry | Re: DEP - Enable or Disable You'r the man Shawn!
Thanks  Ted | My System Specs | | System Manufacturer/Model Number * BFK Customs * OS Vista 64-bit Ultimate Win. 7 64-bit 7229 Win. Server 2008 XP SP3 32-bit Pro CPU Intel C2Q 9550 Yorkfield Motherboard ASUS P5Q Pro Memory 8GB Dominator 8500C5D Graphics Card XFX ATI 1GB 4870 XXX Sound Card Realtek HD 7-1 Monitor(s) Displays 1x 47" LCD HDMI & 2x 26" LCD HDMI Screen Resolution 1920x1080P & 1920x1200 Keyboard HP Enhansed Multimedia Mouse Razer Diamondback 3G PSU Corsair 620HX Case CM Cosmos RC-1000 Cooling Tuniq Tower 120, 2x 140mm and 3x 120mm case fans Hard Drives 2x 500GB 7200RPM 32MB Cache WD Caviar Black Internet Speed 16Mb/s Other Info My First Build ;)
02-27-2008
|
| | Administrator Vista x64 Ultimate SP2 Texas, USA | Re: DEP - Enable or Disable Your welcome Ted.
Sorry, I'm terrible at remembering names.
Shawn | My System Specs | | System Manufacturer/Model Number Custom OS Vista x64 Ultimate SP2 CPU Core2 Quad Q9450 2.66GHz 12MB Motherboard Gigabyte X48-DQ6 Memory 8 GB (4x2) DDR2 PC2-8500 1066 MHz Patriot Extreme Graphics Card BFG GeForce 9600 GT OC 512MB Sound Card Realtek HD Audio ALC889A Integrated Chip Monitor(s) Displays 28" Hanns-G HG281DJB and 17" eMachines E17T4 Screen Resolution 28" 1920x1200 and 17" 1280x1024 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU Antec NeoPower 500 Watt Case Tagan El-Diablo Full Tower Cooling 250 mm Front, 360 mm Side, stock CPU, 120 mm SiLenX Rear Hard Drives 64GB Patriot SSD (v2)
750GB Samsung HDD HD753LJ SATA 32MB Internet Speed 3382 kb/s Download and 312 kb/s Upload Other Info Creative WebCam Instant
02-29-2008
|
| | Member Vista Home Premium 32bit Texas
Rep Power: 10
 | Re: DEP - Enable or Disable Hi Shawn, I enabled the DEP feature on my computer and also IE7, but there is a certain web site I go to, that I trust, that when I try to run certain features on the web site, IE7 shuts it down everytime and says it has something to do with the DEP. Is there a way I can turn DEP off for certain web sites ,I trust, similar to how you can Turn it DEP off for certain programs on the computer? Also, sometimes when I restart my computer and try to get back on the vistx64 web site it won't connect, but it will to every other site. Is the web site down sometimes or is it something on my end? I was going to ask you another question about my fans speeding up from time to time, but I think I figured that one out on my own LOL. I had my computer enclosed and I think it was getting to hot.
Thanks as always,
Casey | My System Specs | | OS Vista Home Premium 32bit
02-29-2008
|
| | Administrator Vista x64 Ultimate SP2 Texas, USA | Re: DEP - Enable or Disable Hi Casey,
There is not a DEP exclusion for websites, just for IE7 itself.
If you trust the website, you can see if adding it as Always Allow on the per site list for cookies will help. Repeat for the Pop-up blocker Settings section below to. Cookies
Shawn | My System Specs | | System Manufacturer/Model Number Custom OS Vista x64 Ultimate SP2 CPU Core2 Quad Q9450 2.66GHz 12MB Motherboard Gigabyte X48-DQ6 Memory 8 GB (4x2) DDR2 PC2-8500 1066 MHz Patriot Extreme Graphics Card BFG GeForce 9600 GT OC 512MB Sound Card Realtek HD Audio ALC889A Integrated Chip Monitor(s) Displays 28" Hanns-G HG281DJB and 17" eMachines E17T4 Screen Resolution 28" 1920x1200 and 17" 1280x1024 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU Antec NeoPower 500 Watt Case Tagan El-Diablo Full Tower Cooling 250 mm Front, 360 mm Side, stock CPU, 120 mm SiLenX Rear Hard Drives 64GB Patriot SSD (v2)
750GB Samsung HDD HD753LJ SATA 32MB Internet Speed 3382 kb/s Download and 312 kb/s Upload Other Info Creative WebCam Instant
02-29-2008
|
| | Member Vista Home Premium 32bit Texas
Rep Power: 10
 | Re: DEP - Enable or Disable Shawn, your help is so valuable. i may get the hang of this after all lol. I disabled DEP for IE7, so its working just fine. I'm not sure what I did , but now when I go to like a web site such as TD Ameritrade, when I log on instead of staying on that same page, it opens up a new window. It wasn't doing that before. Here is another message I am getting.
'Internet explorer needs to open up a new window to display this webpage.'
'For your computers security, websites that are in different security zones must open in different window.'
I am not sure what I changed but it wasn't doing that before. Can you help?
Thanks,
Casey | My System Specs | | OS Vista Home Premium 32bit
02-29-2008
|
| | Administrator Vista x64 Ultimate SP2 Texas, USA | Re: DEP - Enable or Disable Casey,
If you are changing from a unsecured website ( http://) to a secured one ( https://), then this is normal.
Check in the Internet Options, under the Security tab, to see if you have the Default level button grayed out for each of the 4 zones. If not, press the Default level button to set the default settings for that zone.
Hope this helps,
Shawn | My System Specs | | System Manufacturer/Model Number Custom OS Vista x64 Ultimate SP2 CPU Core2 Quad Q9450 2.66GHz 12MB Motherboard Gigabyte X48-DQ6 Memory 8 GB (4x2) DDR2 PC2-8500 1066 MHz Patriot Extreme Graphics Card BFG GeForce 9600 GT OC 512MB Sound Card Realtek HD Audio ALC889A Integrated Chip Monitor(s) Displays 28" Hanns-G HG281DJB and 17" eMachines E17T4 Screen Resolution 28" 1920x1200 and 17" 1280x1024 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU Antec NeoPower 500 Watt Case Tagan El-Diablo Full Tower Cooling 250 mm Front, 360 mm Side, stock CPU, 120 mm SiLenX Rear Hard Drives 64GB Patriot SSD (v2)
750GB Samsung HDD HD753LJ SATA 32MB Internet Speed 3382 kb/s Download and 312 kb/s Upload Other Info Creative WebCam Instant
02-29-2008
|
| | Member Vista Home Premium 32bit Texas
Rep Power: 10
 | Re: DEP - Enable or Disable Well I figured it out Shawn. The Internet/Protected Mode was off. I turned it on and for some reason that fixed the issues. When I log on it opens in the same page instead of pulling up a whole new internet explorer page. Also, the tabs are working again without telling me that a particular site needs to open in a different web site. Hey Shawn, should 'Navigate subframes accross different domains' be enabled or disabled?
You da' man!,
Casey
Last edited by Case; 02-29-2008 at 03:16 PM..
Reason: forgot, another question lol
| My System Specs | | OS Vista Home Premium 32bit | Tutorial Tools | | | | Display Modes | Linear Mode | 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
|