How can i change powershell background color with using powershell commands?
Thanks for answare
Hi @Filip-2434 ,
maybe this is helpful:
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
just type the following inside your powershell:
$Host.UI.RawUI.BackgroundColor = 'Black'
You can change Black with all other colors like Green, Red, Blue,...
To change the colors of your letters for example to green, type the following:
To see the changes just clear your console window. These settings are temporary. If you want them to be persistent check, if you have already a profile file (Test-Path $profile). If you don't have a profile, you can create it using following command: New-Item -path $profile -type file -force
Then fill the file with some information like for example
$console = $host.ui.rawui
$console.backgroundcolor = "black"
$console.foregroundcolor = "white"
$colors = $host.privatedata
$colors.verbosebackgroundcolor = "Magenta"
$colors.verboseforegroundcolor = "Green"
$colors.warningbackgroundcolor = "Red"
$colors.warningforegroundcolor = "white"
$colors.ErrorBackgroundColor = "DarkCyan"
$colors.ErrorForegroundColor = "Yellow"
9 people are following this question.