Open in the explorer

Enable Structured Exception Handling Overwrite Protection (SEHOP)

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › MS Security Guide
Supported on
At least Windows Vista
ADMX file
SecGuide.admx
Internal name
SecGuide/Pol_SecGuide_0102_SEHOP

Explanation

If this setting is enabled, SEHOP is enforced. For more information, see https://support.microsoft.com/en-us/help/956607/how-to-enable-structured-exception-handling-overwrite-protection-sehop-in-windows-operating-systems.

If this setting is disabled or not configured, SEHOP is not enforced for 32-bit processes.

Registry

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\kernel
Value name
DisableExceptionChainValidation
StateValue written
EnabledREG_DWORD = 0
DisabledREG_DWORD = 1

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: SecGuide/Pol_SecGuide_0102_SEHOP
$k = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\kernel'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableExceptionChainValidation' -Value 0 -Type DWord

Disable

# Disable: SecGuide/Pol_SecGuide_0102_SEHOP
$k = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\kernel'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableExceptionChainValidation' -Value 1 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": SecGuide/Pol_SecGuide_0102_SEHOP
$k = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\kernel'
Remove-ItemProperty -Path $k -Name 'DisableExceptionChainValidation' -ErrorAction SilentlyContinue

Application

Microsoft Security Baseline (MSS, SecGuide) (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.