- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to change the Foreground color or Font color of the console using PowerShell?
Font color is termed as the Foreground color in the PowerShell. To change the font color you can use the console GUI property “Screen Text”. There are various 16 colors available and you can change RGB properties as well.
Command
To change the color with the script, use the below command.
$Host.UI.RawUI.ForegroundColor = "Yellow"
Output
You can see the immediate change in the Foreground color.
- Related Articles
- How to change the Foreground Color of Text in C# Console?
- How to change the background color of the font in PowerShell?
- Customize the tooltip font, color , background and foreground color in Java
- How to change the font color of a text using JavaScript?
- How to change the color and font of Android ListView using Kotlin?
- Setting the font color & style of the console in Node.js
- How to change the color of the PowerShell ISE editor using command?
- How to change the text color of font in the legend using Matplotlib?
- How to change the Background Color of Text in C# Console
- How to change JLabel background and foreground color in Java?
- How to change font color of textView in android?
- How to change color and font of Android ListView?
- How to change the size of the Console using PowerShell?
- How to change the Title of the console using PowerShell command?
- How to change the font and color on the UITextView in iOS?

Advertisements