How To Deactivate DEP in Windows and Vista

Since the release of Windows XP Service Pack 2 (SP2) Microsoft has integrated DEP (Data Execution Prevention). DEP prevents programs to run executing code from a non-executable memory region. This helps prevent certain exploits that store code via a buffer overflow, for example.
Since its introduction DEP has been a nightmare preventing many legitimate programs to function correctly. Luckily it is easy to deactivate the Windows Data Execution Prevention, completely or for certain programs only.

Before we continue, make sure you have administrative rights.
Go to the Windows System properties (Windows key + Pause Key). Now select Advanced System Settings.

Windows Vista System Properties
In the advanced systems settings, select the Performance Settings.

Deactivate DEP
Click now Add and navigate to the program you want to allow. Select it’s executable file and problem solved.

Alternatively you can also deactivate DEP completely.

To fix the all too common COM Surrogate Error in Windows Vista, browse to C:\Windows\System32 and select dllhost.exe.

Do you like this article? Submit it to Blogosphere News!

Posted on June 6, 2007 at by franky

There are One Comment


Comments / What do you think?

  1. Comment by Bert Visscher posted on
    June 13th, 2008

    In this article I read “Alternatively you can also deactivate DEP completely.”, but the article doesn’t explain how to do that.