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: 14-Jul-2020

3K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements