Created
January 5, 2018 21:08
-
-
Save rkyttle/3576756e1d6fe3f5234b75abfa045289 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$compliance = $false | |
$SpeculationControlSettings = Get-SpeculationControlSettings | |
if ($SpeculationControlSettings.KVAShadowRequired -eq $False) { | |
$compliance = $True | |
} | |
elseif ($SpeculationControlSettings.KVAShadowRequired -eq $True -and ` | |
$SpeculationControlSettings.KVAShadowWindowsSupportPresent -eq $True -and ` | |
$SpeculationControlSettings.KVAShadowWindowsSupportEnabled -eq $True -and ` | |
$SpeculationControlSettings.KVAShadowPcidEnabled -eq $True) { | |
$compliance = $True | |
} | |
return $compliance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment