Set-WindowsSpeculativeMitigation
1.0.0
This script sets the Windows registry values FeatureSettingsOverrideMask and
FeatureSettingsOverride under:
HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
to mitigate speculative execution vulnerabilities including Spectre, Meltdown,
L1TF, MDS, TAA, and Intel Branch History Injection (BHI / CVE-2022-0001).
Three mitigation levels are ava
FeatureSettingsOverride under:
HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
to mitigate speculative execution vulnerabilities including Spectre, Meltdown,
L1TF, MDS, TAA, and Intel Branch History Injection (BHI / CVE-2022-0001).
Three mitigation levels are ava
This script sets the Windows registry values FeatureSettingsOverrideMask and
FeatureSettingsOverride under:
HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
to mitigate speculative execution vulnerabilities including Spectre, Meltdown,
L1TF, MDS, TAA, and Intel Branch History Injection (BHI / CVE-2022-0001).
Three mitigation levels are available:
Level 1 - All speculative execution CVEs including CVE-2022-0001 with Hyper-Threading enabled (Recommended)
Level 2 - All speculative execution CVEs including CVE-2022-0001 with Hyper-Threading disabled
Level 3 - CVE-2022-0001 (Intel BHI) only - use only if other speculative execution mitigations are managed separately
Show more
FeatureSettingsOverride under:
HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
to mitigate speculative execution vulnerabilities including Spectre, Meltdown,
L1TF, MDS, TAA, and Intel Branch History Injection (BHI / CVE-2022-0001).
Three mitigation levels are available:
Level 1 - All speculative execution CVEs including CVE-2022-0001 with Hyper-Threading enabled (Recommended)
Level 2 - All speculative execution CVEs including CVE-2022-0001 with Hyper-Threading disabled
Level 3 - CVE-2022-0001 (Intel BHI) only - use only if other speculative execution mitigations are managed separately
Installation Options
Owners
Copyright
(c) 2026 PowerShell Scripts Collection
Package Details
Author(s)
- PowerShell Scripts Collection
Tags
@('SpeculativeExecution' 'Spectre' 'Meltdown' 'BHI' 'Security' 'Windows')
Functions
Test-Administrator Get-CurrentRegistryValue Set-RegistryDword Test-HyperThreadingEnabled Main
Dependencies
This script has no dependencies.
Release Notes
Initial release with CVE-2022-0001 BHI mitigation and Hyper-Threading validation.
FileList
- Set-WindowsSpeculativeMitigation.nuspec
- Set-WindowsSpeculativeMitigation.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.0 (current version) | 4 | 8/10/2026 |