Turn off Data Execution Prevention
Désactiver la prévention de l’exécution des données
Explanation
This policy setting allows you to turn off the Data Execution Prevention feature for Internet Explorer on Windows Server 2008, Windows Vista with SP1, and Windows XP with SP3.
If you enable this policy setting, Internet Explorer does not turn on Data Execution Prevention on platforms that support the SetProcessDEPPolicy function.
If you disable or do not configure this policy setting, Internet Explorer uses the SetProcessDEPPolicy function to turn on Data Execution Prevention on platforms that support the function.
This policy setting has no effect if Windows has been configured to enable Data Execution Prevention.
Ce paramètre de stratégie vous permet de désactiver la fonctionnalité de prévention de l’exécution des données pour Internet Explorer sur Windows Server 2008, Windows Vista avec SP1 et Windows XP avec SP3.
Si vous activez ce paramètre de stratégie, Internet Explorer n’active pas la prévention de l’exécution des données sur les plateformes prenant en charge la fonction SetProcessDEPPolicy.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, Internet Explorer utilise la fonction SetProcessDEPPolicy pour activer la prévention de l’exécution des données sur les plateformes prenant en charge cette fonction.
Ce paramètre de stratégie n’a aucun effet si Windows a été configuré pour autoriser la prévention de l’exécution des données.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Main- Value name
DEPOff
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: inetres/IESF_DisableDEP
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DEPOff' -Value 1 -Type DWordDisable
# Disable: inetres/IESF_DisableDEP
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DEPOff' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/IESF_DisableDEP
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
Remove-ItemProperty -Path $k -Name 'DEPOff' -ErrorAction SilentlyContinue