<< Back to Script Library

Enable protection for speculative execution side-channel vulnerabilities

Adds the required registry keys to enable the mitigations on the target computer.
Requires the relevant Microsoft patch installed on the target computer.
For more inforrmation: https://support.microsoft.com/en-us/help/4072698
Version: 2.2.15
Created: 2018-01-04
Modified: 2018-01-11
Creator: Rotem Agmon
Downloads: 73
Tags: Intel Meltdown powershell security Spectre vulnerabilities
The Script Copy Script Copied to clipboard
powershell.exe -Command "Set-ItemProperty -Path Registry::'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' -Name FeatureSettingsOverride -Value 0"
powershell.exe -Command "Set-ItemProperty -Path Registry::'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' -Name FeatureSettingsOverrideMask -Value 3"
powershell.exe -Command "Set-ItemProperty -Path Registry::'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization' -Name MinVmVersionForCpuBasedMitigations -Value '1.0'"