From 84b02884e978a858c981d88c0cc2b68729c54bc7 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Thu, 13 Mar 2025 23:32:56 +0900 Subject: [PATCH] update --- WELA.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WELA.ps1 b/WELA.ps1 index 0d743b4f..f08ecfd8 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -12,7 +12,7 @@ Write-Host $logo -ForegroundColor Green # Step 1: Run the auditpol command using cmd.exe and redirect its output to a file $outputFilePath = "auditpol_output.txt" -Start-Process -FilePath "cmd.exe" -ArgumentList "/c chcp 437 & auditpol /get /category:* /r" -NoNewWindow -Wait -RedirectStandardOutput $outputFilePath -RedirectStandardError $outputFilePath +Start-Process -FilePath "cmd.exe" -ArgumentList "/c chcp 437 & auditpol /get /category:* /r" -NoNewWindow -Wait -RedirectStandardOutput $outputFilePath $auditpolOutput = Get-Content -Path $outputFilePath $filteredOutput = $auditpolOutput | Select-String -NotMatch "No Auditing" $extractedStrings = [System.Collections.Generic.HashSet[string]]::new()