Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # https://pastebin.com/mHrpM9DH
- # Showcases the available console colors in PowerShell
- $Host.UI.RawUI.WindowTitle = 'Console Colors'
- $Host.UI.RawUI.WindowSize = New-Object System.Management.Automation.Host.Size(22,32)
- $Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(22,32)
- 'Black','DarkBlue','DarkGreen','DarkCyan','DarkRed','DarkMagenta','DarkYellow','Gray','DarkGray','Blue','Green','Cyan','Red','Magenta','Yellow','White' | ForEach-Object {
- Write-Host -Object ("`n`n {0,-12}" -f $_) -NoNewline
- Write-Host -BackgroundColor $_ -ForegroundColor $_ -Object " " -NoNewline
- }
- Read-Host
Add Comment
Please, Sign In to add comment