Skip to content

Better text viewing in Check UEFI PK, KEK, DB and DBX.ps1#47

Open
BillyRazOr wants to merge 1 commit into
cjee21:mainfrom
BillyRazOr:main
Open

Better text viewing in Check UEFI PK, KEK, DB and DBX.ps1#47
BillyRazOr wants to merge 1 commit into
cjee21:mainfrom
BillyRazOr:main

Conversation

@BillyRazOr

@BillyRazOr BillyRazOr commented Jun 30, 2026

Copy link
Copy Markdown

I added some colors and updated Write-Host title for better text viewing. (I'm not an expert programming or anything else, I just make some a bit better look for it.)

Before

CMD version:
2026-06-30_093347

Powershell version (Terminal):
2026-06-30_093432

After

CMD version:
2026-06-30_084643

Powershell version (Terminal):
2026-06-30_084837

Those colors at $revoked would change depends on user's PC revocation applies:

$esc = [char]0x1b
switch ($revoked) {
'True' {
# Green color (92m)
return "${esc}[92mTrue${esc}[0m"
}
'False' {
# Cyan color (96m)
return "${esc}[96mFalse${esc}[0m"
}
'Unknown' {
# Yellow color (93m)
return "${esc}[93mUnknown${esc}[0m"

I updated text headers for better viewing like this:
Write-Host $fgGreen$bgWhite======$reset $fgGreen$bold'Current UEFI KEK'$reset $fgGreen$bgWhite======$reset

Hope this helps.

Added some colors and updated Write-Host title for better text viewing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant