mirror of
https://github.com/Yamato-Security/WELA.git
synced 2026-01-23 16:33:32 +01:00
fix: remove redundant registry output for AuditFilter check in WELA.ps1
This commit is contained in:
3
WELA.ps1
3
WELA.ps1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user