We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9ec838 commit c1e837eCopy full SHA for c1e837e
config/WELA.ps1
@@ -3,7 +3,9 @@ $outputFilePath = "auditpol_output.txt"
3
Start-Process -FilePath "cmd.exe" -ArgumentList "/c chcp 437 & auditpol /get /category:* /r > $outputFilePath" -NoNewWindow -Wait
4
$auditpolOutput = Get-Content -Path $outputFilePath
5
$filteredOutput = $auditpolOutput | Select-String -NotMatch "No Auditing"
6
+Write-Host "DEBUG2"
7
$extractedStrings = [System.Collections.Generic.HashSet[string]]::new()
8
+Write-Host "DEBUG"
9
$filteredOutput | ForEach-Object {
10
if ($_ -match '{(.*?)}') {
11
$extractedStrings.Add($matches[1])
0 commit comments