Select the product you need help with
A detailed description of the Data Execution Prevention (DEP) feature in Windows XP Service Pack 2, Windows XP Tablet PC Edition 2005, and Windows Server 2003Article ID: 875352 - View products that this article applies to. To continue receiving security updates for Windows, make sure you're running Windows XP with Service Pack 3 (SP3).
For more information, refer to this Microsoft web page: Support is ending for some versions of Windows |
| Configuration | Description |
| OptIn | This setting is the default configuration. On systems with processors that can implement hardware-enforced DEP, DEP is enabled by default for limited system binaries and programs that "opt-in." With this option, only Windows system binaries are covered by DEP by default. |
| OptOut | DEP is enabled by default for all processes. You can manually create a list of specific programs that do not have DEP applied by using the System dialog box in Control Panel. Information technology (IT) professionals can use the Application Compatibility Toolkit to "opt-out" one or more programs from DEP protection. System compatibility fixes, or shims, for DEP do take effect. |
| AlwaysOn | This setting provides full DEP coverage for the whole system. All processes always run with DEP applied. The exceptions list to exempt specific programs from DEP protection is not available. System compatibility fixes for DEP do not take effect. Programs that have been opted-out by using the Application Compatibility Toolkit run with DEP applied. |
| AlwaysOff | This setting does not provide any DEP coverage for any part of the system, regardless of hardware DEP support. The processor does not run in PAE mode unless the /PAE option is present in the Boot.ini file. |
Similarly, if the system-wide DEP policy is set to OptOut, programs that have been exempted from DEP protection will be exempted from both hardware-enforced and software-enforced DEP.
The Boot.ini file settings are as follows:
/noexecute=policy_level
Note policy_level is defined as AlwaysOn,
AlwaysOff, OptIn, or OptOut.Existing /noexecute settings in the Boot.ini file are not changed when Windows XP SP2 is installed. These settings are also not changed if a Windows operating system image is moved across computers with or without hardware-enforced DEP support.
During installation of Windows XP SP2 and Windows Server 2003 SP1 or later versions, the OptIn policy level is enabled by default unless a different policy level is specified in an unattended installation. If the /noexecute=policy_level setting is not present in the Boot.ini file for a version of Windows that supports DEP, the behavior is the same as if the /noexecute=OptIn setting was included.
If you are logged on as an administrator, you can manually configure DEP to switch between the OptIn and OptOut policies by using the Data Execution Prevention tab in System Properties. The following procedure describes how to manually configure DEP on the computer:
- Click Start, click Run, type sysdm.cpl, and then click OK.
- On the Advanced tab, under Performance, click Settings.
- On the Data Execution Prevention tab, use
one of the following procedures:
- Click Turn on DEP for essential Windows programs and services only to select the OptIn policy.
- Click Turn on DEP for all programs and services except those I select to select the OptOut policy, and then click Add to add the programs that you do not want to use the DEP feature.
- Click OK two times.
To configure DEP to switch to the AlwaysOn policy by using the Boot.ini file, follow these steps:
- Click Start, right-click My Computer, and then click Properties.
- Click the Advanced tab, and then click Settings under the Startup and Recovery field.
- In the System startup field, click Edit. The Boot.ini file opens in Notepad.
- In Notepad, click Find on the Edit menu.
- In the Find what box, type /noexecute, and then click Find Next.
- In the Find dialog box, click Cancel.
- Replace policy_level with AlwaysOn.
WARNING Make sure that you enter the text accurately. The Boot.ini file switch should now read:/noexecute=AlwaysOn - In Notepad, click Save on the File menu.
- Click OK two times.
- Restart the computer.
Per-program DEP configuration
For the purposes of program compatibility, you can selectively disable DEP for individual 32-bit programs when DEP is set to the OptOut policy level. To do this, use the Data Execution Prevention tab in System Properties to selectively disable DEP for a program. For IT professionals, a new program compatibility fix that is named DisableNX is included with Windows XP SP2. The DisableNX compatibility fix disables Data Execution Prevention for the program that the fix is applied to.The DisableNX compatibility fix can be applied to a program by using the Application Compatibility Toolkit. For more information about Windows application compatibility, see Windows Application Compatibility on the following Microsoft Web site:
http://technet.microsoft.com/en-us/windowsvista/aa905066.aspx
(http://technet.microsoft.com/en-us/windowsvista/aa905066.aspx)
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
912923
(http://support.microsoft.com/kb/912923/
)
How to determine that hardware DEP is available and configured on your computer
REFERENCES
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
899298
(http://support.microsoft.com/kb/899298/
)
The "Understanding Data Execution Prevention" help topic incorrectly states the default setting for DEP in Windows Server 2003 Service Pack 1
Properties
Article ID: 875352 - Last Review: September 26, 2006 - Revision: 14.6
APPLIES TO
- Microsoft Windows Server 2003 Service Pack 1, when used with:
- Microsoft Windows Server 2003, Web Edition
- Microsoft Windows Server 2003, Standard Edition (32-bit x86)
- Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
- Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
- Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
- Microsoft Windows XP Professional Service Pack 2 (SP2)
- Microsoft Windows XP Home Edition Service Pack 2 (SP2)
- Microsoft Windows XP Media Center Edition Service Pack 2 (SP2)
- Microsoft Windows XP Tablet PC Edition 2005
Keywords: | kbtshoot kbinfo KB875352 |
Article Translations
- (الشرق الاوسط (العربية
- Brasil (Português)
- Česká republika (Čeština)
- Danmark (Dansk)
- Deutschland (Deutsch)
- Eesti (Eesti)
- España, Latinoamérica (Español)
- France (Français)
- Hrvatska (Hrvatski)
- Indonesia (Bahasa Indonesia)
- Italia (Italiano)
- Latvija (Latviešu)
- Lietuva (Lietuvių)
- Magyarország (Magyar)
- Nederland (Nederlands)
- Norge (Norsk Bokmål)
- Polska (Polski)
- Portugal (Português)
- România (Română)
- Slovenija (Slovenščina)
- Slovenská Republika (Slovenčina)
- Srbija (Srpski)
- Suomi (Suomi)
- Sverige (Svenska)
- Türkiye (Türkçe)
- Việt Nam (Tiếng Việt)
- Ελλάδα (Ελληνικά)
- България (български)
- Қазақстан (Қазақ)
- Россия (Русский)
- Україна (Україньска)
- ไทย (ไทย)
- 대한민국 (한국어)
- 中国 (简体中文)
- 台灣 (繁體中文)
- 日本 (日本語)


Back to the top








