Microsoft KB Archive/912923

= How to determine that hardware DEP is available and configured on your computer =

Article ID: 912923

Article Last Modified on 10/11/2007

-

APPLIES TO

 Microsoft Windows Server 2003 SP1, when used with:  Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)

 Microsoft Windows Server 2003, Enterprise Edition

 Microsoft Windows Server 2003, Standard Edition (32-bit x86)

 Microsoft Windows Server 2003, Web Edition</li></ul>

 Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems</li></ul>

 Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems</li></ul> </li> Microsoft Windows XP Service Pack 2, when used with:  Microsoft Windows XP Professional</li></ul>

 Microsoft Windows XP Home Edition</li></ul>

 Microsoft Windows XP Media Center Edition 2002</li></ul>

 Microsoft Windows XP Professional x64 Edition</li></ul>

 Microsoft Windows XP Tablet PC Edition</li></ul>

 <li>Microsoft Windows XP Tablet PC Edition 2005</li></ul>

<ul> <li>Microsoft Windows XP for Itanium-based Systems Version 2003</li></ul>

<ul> <li>Microsoft Windows XP Professional 64-Bit Edition (Itanium)</li></ul>

<ul> <li>Microsoft Windows XP Media Center Edition 2004</li></ul> </li> <li>Microsoft Windows XP Media Center Edition 2005</li></ul>

-

<div class="summary_section">

INTRODUCTION
Data Execution Prevention (DEP) is a set of hardware and software technologies that perform additional checks on memory to help protect against malicious code exploits.

Hardware-enforced DEP marks all memory locations in a process as non-executable unless the location explicitly contains executable code. One kind of malicious code attacks tries to insert and run code from non-executable memory locations. DEP helps prevent these attacks by intercepting them and raising an exception.

This article describes the requirements for using hardware-enforced DEP. This article also describes how to confirm that hardware DEP is working in Windows.

<div class="moreinformation_section">

Requirements for using hardware-enforced DEP
To use hardware-enforced DEP, you must meet all the following conditions:
 * 1) The computer's processor must support hardware-enforced DEP.

Many recent processors support hardware-enforced DEP. Both Advanced Micro Devices (AMD) and Intel Corporation have defined and shipped Windows-compatible architectures that are compatible with DEP. This processor support may be known as NX (no-execute) or XD (execute disable) technology. To determine whether your computer's processor supports hardware-enforced DEP, contact the manufacturer of your computer.
 * 1) Hardware-enforced DEP must be enabled in the BIOS.

On some computers, you can disable processor support for hardware-enforced DEP in the BIOS. You must not disable this support. Depending on your computer manufacturer, the option to disable this support may be labeled &quot;Data Execution Prevention,&quot; &quot;XD,&quot; &quot;Execute Disable,&quot; or &quot;NX.&quot;
 * 1) The computer must have Windows XP with Service Pack 2 or Windows Server 2003 with Service Pack 1 installed.

Note Both 32-bit versions and 64-bit versions of Windows support hardware-enforced DEP. Windows XP Media Center Edition 2005 and Microsoft Windows XP Tablet PC Edition 2005 include all the features and components of Windows XP SP2.
 * 1) Hardware-enforced DEP must be enabled for programs on the computer.

In 64-bit versions of Windows, hardware-enforced DEP is always enabled for 64-bit native programs. However, depending on your configuration, hardware-enforced DEP may be disabled for 32-bit programs.

For more information about DEP, about DEP configuration, and for a list of Windows Operating Systems that support hardware DEP, click the following article number to view the article in the Microsoft Knowledge Base:

875352 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 2003

For information about how to configure memory protection in Windows XP with Service Pack 2, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/windowsxp/depcnfxp.mspx

How to confirm that hardware DEP is working in Windows
To confirm that hardware DEP is working in Windows, use one of the following methods.

Method 1: Use the Wmic command-line tool
You can use the Wmic command-line tool to examine the DEP settings. To determine whether hardware-enforced DEP is available, follow these steps: <ol> <li>Click Start, click Run, type cmd in the Open box, and then click OK.</li> <li>At the command prompt, type the following command, and then press ENTER:

wmic OS Get DataExecutionPrevention_Available

If the output is &quot;TRUE,&quot; hardware-enforced DEP is available.</li></ol>

To determine the current DEP support policy, follow these steps. <ol> <li>Click Start, click Run, type cmd in the Open box, and then click OK.</li> <li>At the command prompt, type the following command, and then press ENTER:

wmic OS Get DataExecutionPrevention_SupportPolicy

The value returned will be 0, 1, 2 or 3. This value corresponds to one of the DEP support policies that are described in the following table.</li></ol>

Note To verify that Windows is running with hardware DEP enabled, examine the DataExecutionPrevention_Drivers property of the Win32_OperatingSystem class. In some system configurations, hardware DEP may be disabled by using the /nopae or /execute switches in the Boot.ini file. To examine this property, type the following command at a command prompt:

wmic OS Get DataExecutionPrevention_Drivers

Method 2: Use the graphical user interface
To use the graphical user interface to determine whether DEP is available, follow these steps:
 * 1) Click Start, click Run, type wbemtest in the Open box, and then click OK.
 * 2) In the Windows Management Instrumentation Tester dialog box, click Connect.
 * 3) In the box at the top of the Connect dialog box, type root\cimv2, and then click Connect.
 * 4) Click Enum Instances.
 * 5) In the Class Info dialog box, type Win32_OperatingSystem in the Enter superclass name box, and then click OK.
 * 6) In the Query Result dialog box, double-click the top item.

Note This item starts with &quot;Win32_OperatingSystem.Name=Microsoft...&quot;
 * 1) In the Object editor dialog box, locate the DataExecutionPrevention_Available property in the Properties area.
 * 2) Double-click DataExecutionPrevention_Available.
 * 3) In the Property Editor dialog box, note the value in the Value box.

If the value is TRUE, hardware DEP is available.