Boot Parameters to Configure DEP and PAE

Boot Parameters to Configure DEP and PAE

Boot Parameters to Configure DEP and PAE

boot đẹp

This topic explains how to use boot parameters to enable, disable, and configure Data Execution Prevention (DEP) and Physical Address Extension (PAE) on operating systems that support these features.

For information about the boot parameters for DEP and PAE see the BCDEdit /set command and the nx and pae options.

Important DEP is a highly effective security feature that should not be disabled unless you have no alternative. The default settings for DEP and PAE are optimal for most systems. Do not change the default settings unless they interfere with essential processing tasks. This section is included to show you how to configure these features, but it should not be interpreted as a recommendation to change the default settings.

DEP and PAE Boot Parameters

DEP and PAE are enabled at boot time and are configured by setting values for the nx and pae parameters using the BCDEdit /set command.

These boot parameters have conflicting effects. To configure DEP and PAE, use only the parameter combinations that are described in the documentation for each parameter and discussed in this topic. Do not experiment with conflicting parameters, especially on a production system.

The Interaction of DEP and PAE Boot Parameters

There are two types of DEP:

  • Hardware-enforced DEP enables DEP for both kernel-mode and user-mode processes. It must be supported by the processor and the operating system.
  • Software-enforced DEP enables DEP only on user-mode processes. It must be supported by the operating system.

On 32-bit versions of Windows, hardware-enforced DEP requires PAE, which is supported by all Windows operating systems that support DEP. When DEP is enabled on a computer with a processor that supports hardware-enforced DEP, Windows automatically enables PAE and ignores the boot parameter values that disable it.

The parameter combinations for each Windows operating system are summarized in the following section.

DEP and PAE Parameter Combinations

The following list describes the boot parameter combinations that can be used to configure DEP and PAE.

Note The optional {ID} is the GUID for the specific Windows boot loader boot entry that you want to configure. If you do not specify an {ID}, the command modifies the current operating system boot entry. For more information, see the BCDEdit /set command .

Action Windows Vista and later

To enable DEP

(Select one parameter combination)

When DEP is enabled on computers that support hardware-enforced DEP, these parameter combinations also enable PAE.

/set [{ID}] nx AlwaysOn

/set [{ID}] nx OptIn

/set [{ID}] nx OptOut

To enable DEP and PAE on systems with software-enforced DEP

(Select one parameter combination)

On computers that support hardware-enforced DEP, PAE is automatically enabled when you enable DEP.

/set [{ID}] nx AlwaysOn

/set [{ID}] pae default

/set [{ID}] nx OptIn

/set [{ID}] pae default

/set [{ID}] nx OptOut

/set [{ID}] pae default

To disable DEP, but enable PAE

/set [{ID}] nx AlwaysOff

/set [{ID}] pae ForceEnable

To disable DEP, but enable PAE

/set [{ID}] nx AlwaysOff

/set [{ID}] pae ForceEnable

To disable both DEP and PAE

/set [{ID}] nx AlwaysOff

/set [{ID}] pae ForceDisable

To disable both DEP and PAE

This post was last modified on Tháng mười hai 5, 2024 4:38 chiều