# How to change the color of first word in Windows PowerShell

Posted by Bruce Liu on February 28, 2020

🏷️ Tags: PowerShell , cmder

See the output first.

How to make it?

As shown in the above picture, type the command in your terminal directly. While it is one-time effective.

Place it in your profile and it will run when you launch PowerShell.

• If it is the first time you set your $profile, you have to enable running unsigned scripts. set-executionpolicy remotesigned Then, add this script. 'Set-PSReadlineOption -TokenKind Command -ForegroundColor Black' ` |Add-Content$Profile

• Alternatively, you can add the followings to Microsoft.PowerShell_profile.ps1 located in C:\Users\<username>\Documents\WindowsPowerShell by yourself.