fix(audit): harden HardeningKitty packaging and reporting
This commit is contained in:
1 parent
f4a67f3e1b
commit
91eb704215
10 files changed
+1171
-236
No files matched your search
+2
-1
@@ -34,7 +34,7 @@ function Get-MachineFindingList {
|
||||
|
||||
if ([int]$os.ProductType -eq 1) {
|
||||
if ($build -ge 22000) {
|
||||
if ($version -notin @('21h2','22h2','23h2','24h2','25h2','26h2')) {
|
||||
if ($version -notin @('21h2','22h2','23h2','24h2','25h2')) {
|
||||
throw "Unsupported Windows 11 DisplayVersion '$display' (build $build); set profile explicitly."
|
||||
}
|
||||
return ('finding_list_msft_security_baseline_windows_11_' + $version + '_machine.csv')
|
||||
@@ -61,6 +61,7 @@ function Get-MachineFindingList {
|
||||
}
|
||||
|
||||
try {
|
||||
if (-not [Environment]::Is64BitProcess) { throw 'A 64-bit PowerShell process is required.' }
|
||||
if (-not (Test-Path -LiteralPath $InstallRoot -PathType Container)) { throw 'Installed package data missing.' }
|
||||
$listName = Get-MachineFindingList -ProfileName $Profile -AuditSource $Source
|
||||
$listPath = Join-Path (Join-Path $InstallRoot 'lists') $listName
|
||||
|
||||
Reference in new issue
Block a user