From d13026210836a44056176c882d00230849ef32a1 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Wed, 12 Mar 2025 00:38:47 +0900 Subject: [PATCH] update --- config/WELA.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/config/WELA.ps1 b/config/WELA.ps1 index de7cbe56..5850dcaf 100644 --- a/config/WELA.ps1 +++ b/config/WELA.ps1 @@ -3,6 +3,7 @@ $outputFilePath = "auditpol_output.txt" Start-Process -FilePath "cmd.exe" -ArgumentList "/c chcp 437 & auditpol /get /category:* /r > $outputFilePath" -NoNewWindow -Wait $auditpolOutput = Get-Content -Path $outputFilePath -Raw $filteredOutput = $auditpolOutput | Select-String -NotMatch "No Auditing" +Write-Host $filteredOutput $extractedStrings = [System.Collections.Generic.HashSet[string]]::new() $filteredOutput | ForEach-Object { if ($_ -match '{(.*?)}') {