Skip to content

Instantly share code, notes, and snippets.

@rkyttle
Created January 5, 2018 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkyttle/3576756e1d6fe3f5234b75abfa045289 to your computer and use it in GitHub Desktop.
Save rkyttle/3576756e1d6fe3f5234b75abfa045289 to your computer and use it in GitHub Desktop.
$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