list-console-colors
Lists all console colors
#Requires -Version 5.1
try {
$colors = [Enum]::GetValues([ConsoleColor])
""
"COLOR FOREGROUND BACKGROUND"
"----- ---------- ----------"
foreach($color in $colors) {
$color = "$color "
$color = $color.substring(0, 15)
Write-Host "$color" -noNewline
Write-Host "$color" -foregroundColor $color -noNewline
Write-Host "$color" -backgroundColor $color
}
exit 0
} catch {
throw
}This script has no configurable parameters.