How to change the background color of the font in PowerShell?



To change the background color of the font, you can use the GUI and command line both.

With GUI − Colors → Screen Background.

CLI

$host.UI.RawUI.BackgroundColor = "DarkBlue"

You will notice that the background color of the text has been changed to DarkBlue.

Updated on: 2020-07-14T13:16:43+05:30

3K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements