# [轉載] 檢視 PowerShell color table 的方法 ###### tags: `教學` **List of all colors available for PowerShell? - Stack Overflow** https://stackoverflow.com/questions/20541456/list-of-all-colors-available-for-powershell/41954792#41954792 ```ps1! $colors = [enum]::GetValues([System.ConsoleColor]) Foreach ($bgcolor in $colors){ Foreach ($fgcolor in $colors) { Write-Host "$fgcolor|" -ForegroundColor $fgcolor -BackgroundColor $bgcolor -NoNewLine } Write-Host " on $bgcolor" } ```