fix: remove redundant registry output for AuditFilter check in WELA.ps1

This commit is contained in:
fukusuket
2025-11-15 10:35:06 +09:00
parent 775a716c90
commit 08da2a2d59

View File

@@ -5907,10 +5907,7 @@ function ConfigureAuditSettings {
$caName = (Get-ItemProperty $csRootKey -ErrorAction Stop).Active
$regPath = "HKLM:\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\$caName"
$prop = Get-ItemProperty -Path $regPath -Name "AuditFilter" -ErrorAction SilentlyContinue
$currentValue = if ($null -ne $prop) { [int]$prop.AuditFilter } else { "Not Set" }
Write-Host "Registry: $regPath"
if ($currentValue -eq 127) {
Write-Host "[OK] AuditFilter is already 127" -ForegroundColor Green
}