From 4d93de3bb5f5e09ee9d52380c92192697acda7f8 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Sat, 15 Nov 2025 10:27:34 +0900 Subject: [PATCH] fix: enhance auditing setup with new auditpol configurations and batch script for event log management --- WELA.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/WELA.ps1 b/WELA.ps1 index 2bd62252..3deff6d4 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -5929,11 +5929,9 @@ function ConfigureAuditSettings { if ($proceed) { try { # AuditFilter の設定 - Start-Process -FilePath "certutil.exe" -ArgumentList "-setreg","CA\AuditFilter","127" -NoNewWindow -Wait - + Start-Process -FilePath "certutil.exe" -ArgumentList "-setreg","CA\AuditFilter","127" -NoNewWindow -Wait -RedirectStandardOutput 'NUL' -RedirectStandardError 'NUL' # 証明書サービスの再起動 Restart-Service -Name "CertSvc" -Force -ErrorAction Stop - # 反映確認 $propAfter = Get-ItemProperty -Path $regPath -Name "AuditFilter" -ErrorAction SilentlyContinue $newValue = if ($null -ne $propAfter) { [int]$propAfter.AuditFilter } else { $null }