From 775a716c907bce82d34ea1846c8ffd6fe1a61954 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Sat, 15 Nov 2025 10:34:07 +0900 Subject: [PATCH] fix: update AuditFilter setting command for improved error handling in WELA.ps1 --- WELA.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WELA.ps1 b/WELA.ps1 index 3deff6d4..33b33364 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -5929,7 +5929,7 @@ function ConfigureAuditSettings { if ($proceed) { try { # AuditFilter の設定 - Start-Process -FilePath "certutil.exe" -ArgumentList "-setreg","CA\AuditFilter","127" -NoNewWindow -Wait -RedirectStandardOutput 'NUL' -RedirectStandardError 'NUL' + & certutil.exe -setreg "CA\AuditFilter" 127 >$null 2>&1; Restart-Service -Name 'CertSvc' -Force -ErrorAction Stop # 証明書サービスの再起動 Restart-Service -Name "CertSvc" -Force -ErrorAction Stop # 反映確認