mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-07 17:52:49 +01:00
feat: verbose security
This commit is contained in:
@@ -234,7 +234,14 @@ System
|
||||
$msgLines = $msg -split "`n"
|
||||
foreach ($line in $msgLines) {
|
||||
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
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Write-Host $line
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user