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 }