mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-18 07:02:52 +01:00
feat: verbose security
This commit is contained in:
@@ -236,18 +236,18 @@ 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.*\(') {
|
||||||
Write-Host $line -ForegroundColor Red
|
Write-Host $line -ForegroundColor Red
|
||||||
# $parts = $line -split '(disabled.*\))'
|
$parts = $line -split '(disabled.*\))'
|
||||||
# foreach ($part in $parts) {
|
foreach ($part in $parts) {
|
||||||
# if ($part -match '.*disabled.*$') {
|
if ($part -match '.*disabled.*$') {
|
||||||
# Write-Host -NoNewline $part -ForegroundColor Red
|
Write-Host -NoNewline $part -ForegroundColor Red
|
||||||
# } else {
|
} else {
|
||||||
# Write-Host -NoNewline $part
|
Write-Host -NoNewline $part
|
||||||
# }
|
}
|
||||||
# }
|
}
|
||||||
# Write-Host ""
|
Write-Host ""
|
||||||
} elseif ($line -match '.*enabled.*') {
|
} elseif ($line -match '.*enabled.*\(') {
|
||||||
Write-Host $line -ForegroundColor Green
|
Write-Host $line -ForegroundColor Green
|
||||||
} else {
|
} else {
|
||||||
Write-Host $line
|
Write-Host $line
|
||||||
|
|||||||
Reference in New Issue
Block a user