November 9th, 2015

PowerTip: Change PowerShell ISE Foreground Color

Doctor Scripto
Scripter

Summary: Programatically change the foreground color in the Windows PowerShell ISE.

Hey, Scripting Guy! Question How can I change the foreground color in the Windows PowerShell ISE?

Hey, Scripting Guy! Answer Use $Host.UI.RawUI.ForegroundColor and assign a new color. For example, to change it to cyan, use:

$Host.UI.RawUI.ForegroundColor = ‘cyan’

Category
Scripting

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.