mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-08 18:22:50 +01:00
feat: verbose security
This commit is contained in:
@@ -234,15 +234,16 @@ System
|
|||||||
$msgLines = $msg -split "`n"
|
$msgLines = $msg -split "`n"
|
||||||
foreach ($line in $msgLines) {
|
foreach ($line in $msgLines) {
|
||||||
if ($line -match '.*disabled.*') {
|
if ($line -match '.*disabled.*') {
|
||||||
$parts = $line -split '(disabled.*\))'
|
Write-Host $line -ForegroundColor Red
|
||||||
foreach ($part in $parts) {
|
# $parts = $line -split '(disabled.*\))'
|
||||||
if ($part -match '.*disabled.*$') {
|
# foreach ($part in $parts) {
|
||||||
Write-Host -NoNewline $part -ForegroundColor Red
|
# if ($part -match '.*disabled.*$') {
|
||||||
} else {
|
# Write-Host -NoNewline $part -ForegroundColor Red
|
||||||
Write-Host -NoNewline $part
|
# } else {
|
||||||
}
|
# Write-Host -NoNewline $part
|
||||||
}
|
# }
|
||||||
Write-Host ""
|
# }
|
||||||
|
# Write-Host ""
|
||||||
} else {
|
} else {
|
||||||
Write-Host $line
|
Write-Host $line
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user