Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to exclude a single application's executable from DEP (Data Execution Prevention) on our automated Windows Server 2008 builds. Is there a way to do this either as a registry setting or from the command line?

share|improve this question
up vote 3 down vote accepted

Try editing the application path below and importing it:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"C:\\Program Files\\MyApp\\MyApp.exe"="DisableNXShowUI"

Edit: Just checked on a Server 2008 install I have and that is how the Nagios client is handling the DEP issue with their installer.

share|improve this answer
Fab!....Did the trick. – Kev Aug 31 '09 at 18:02

I think that what you need is the Application Compatibility Toolkit. With this you can create a shim that specifies that DEP should be disabled for your application.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.