PowerTip: Change PowerShell ISE Foreground Color


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'

Comments (2)

  1. Jason says:

    Is there a command to change colors back to the default once changed?

  2. Jeff25 says:

    I was wondering the same thing? some easy command to revert back to default?

Skip to main content