How to change text color in windows 10

broken image
broken image
broken image

So run the following command to check if it already exists or if you need to create it from scratch: test-path $profile. This will show you the name (and location) of the default file for your profile.

broken image

For that, first run the command $profile.

broken image

You have now configured your console settings, but you’ll need to save them to your profile settings so that the screen opens up exactly as you want it to, every time.Just remember to enter them separately and press ‘Enter’ in each case. Since I’d like to change the background color to ‘Magenta’ and foreground color to ‘Green’, I’ll input the two commands below. To change the foreground and background colors of error messages, all you need to do is assign new values.First off, to know the default colors, go ahead and copy/paste this code on the PowerShell console and press ‘Enter’: $host.privatedata While this was a really easy way to change some of the settings, what if you want to do more extensive changes to your PowerShell console? For example, what if you want to change the text and background colors of error messages from red on black to something a little less drastic? For that, you’ll need to get down and dirty and use the console itself rather than rely on GUI.Change Error Message Colors in Windows 10 PowerShell Console