feat: verbose security

This commit is contained in:
fukusuket
2025-04-02 12:24:10 +09:00
parent e8204c29cc
commit 162f295d9b

View File

@@ -236,18 +236,18 @@ System
$msgLines = $msg -split "`n"
foreach ($line in $msgLines) {
if ($line -match '.*disabled.*') {
if ($line -match '.*disabled.*\(') {
Write-Host $line -ForegroundColor Red
# $parts = $line -split '(disabled.*\))'
# foreach ($part in $parts) {
# if ($part -match '.*disabled.*$') {
# Write-Host -NoNewline $part -ForegroundColor Red
# } else {
# Write-Host -NoNewline $part
# }
# }
# Write-Host ""
} elseif ($line -match '.*enabled.*') {
$parts = $line -split '(disabled.*\))'
foreach ($part in $parts) {
if ($part -match '.*disabled.*$') {
Write-Host -NoNewline $part -ForegroundColor Red
} else {
Write-Host -NoNewline $part
}
}
Write-Host ""
} elseif ($line -match '.*enabled.*\(') {
Write-Host $line -ForegroundColor Green
} else {
Write-Host $line