Would you like to learn how to use multiple colors on the command WRITE-HOST? In this tutorial, we will show you how to display multiple colors in the console using the Powershell command WRITE-HOST.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Related tutorial – PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Powershell WRITE-HOST – Using colors

Start a Powershell command-line.

Start Powershell

List all Powershell colors available.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Powershell text in red color.

Copy to Clipboard

Powershell text in color green.

Copy to Clipboard

Powershell text in yellow color.

Copy to Clipboard

Powershell text in red background.

Copy to Clipboard

Powershell text in green background.

Copy to Clipboard

Powershell text in yellow background.

Copy to Clipboard

Powershell text in black color and green background.

Copy to Clipboard

Powershell text in red color and yellow background.

Copy to Clipboard

Multiple Powershell colors in the same line.

Copy to Clipboard

Multiple colors in the same line.

POWERSHELL WRITE-OUTPUT COLOR

Congratulations! You are able to use multiple colors on the Powershell command WRITE-HOST.