The default colors on Powershell are horrible. Using the Properties or Default options to change these colors can have strange results. To overcome this, the color settings are set in the profile file which will be executed during PowerShell startup.
Reference:
- PowerShell Basics: Console Configuration
- Customize the PowerShell Console for Increased Efficiency
- Customizing your PowerShell Profile
The location of the Profile on DT-11 is D:\Users\tfw\Documents\WindowsPowerShell.
The current content in the Profile is below.
set-location -Path K:\projs
$Shell = $Host.UI.RawUI
$size = $Shell.WindowSize
$size.width=90
$size.height=35
$Shell.WindowSize = $size
$size = $Shell.BufferSize
$size.width=90
$size.height=5000
$Shell.BufferSize = $size
$Shell.BackgroundColor = "black"
$Shell.ForegroundColor = "gray"
$host.PrivateData.ErrorBackgroundColor = "white"
$Host.PrivateData.WarningBackgroundColor = "white"
$Host.PrivateData.VerboseBackgroundColor = "white"
$Host.PrivateData.ErrorForegroundColor = "Darkred"
$Host.PrivateData.WarningForegroundColor = "DarkGreen"
$Host.PrivateData.VerboseForegroundColor = "DarkBlue"
start-sleep 1
Clear-Host
