From bf5cbbb6967bee3ef58795d729d5815cd2dbd524 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Sun, 13 Apr 2025 22:18:08 +0900 Subject: [PATCH] feat: add format-table --- WELA.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WELA.ps1 b/WELA.ps1 index cae19d79..03cc73ee 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -1035,6 +1035,8 @@ function AuditLogSetting { Write-Output "Audit check result saved to: WELA-Audit-Result.csv" } elseif ($outType -eq "gui") { $auditResult | Select-Object -Property Category, SubCategory, RuleCount, RuleCountByLevel, Enabled, DefaultSetting, RecommendedSetting, Volume, Note | Out-GridView -Title "WELA Audit Result" + } elseif ($outType -eq "table") { + $auditResult | Select-Object -Property Category, SubCategory, RuleCount, RuleCountByLevel, Enabled, DefaultSetting, RecommendedSetting, Volume, Note | Format-Table } $usableRules = $auditResult | Select-Object -ExpandProperty Rules | Where-Object { $_.applicable -eq $true } $unUsableRules = $auditResult | Select-Object -ExpandProperty Rules | Where-Object { $_.applicable -eq $false }