Windows – Backup Modified PowerShell Console Colors Properties (Windows 10)

colorscommand linepowershelluser-profileswindows 10

I don't quite understand how this works. So when I open up PowerShell as administrator, I can right click on the title bar, go to "Properties," then go to "Colors" and make changes. For example, I set the "Screen Background" default color to black instead of the default dark blue. I've noticed that these changes seem to persist even after I restart the computer and open up PowerShell as administrator again. However, these changes do not seem to apply to whenever I open up PowerShell regularly (not as administrator). So, for example, I could have admin powershell have a black background and regular powershell have a red background.

But here's the point; suppose I change a lot of the colors and I want to back these changes up somehow. They must be stored somewhere, and clearly it's different for each of the two versions of PowerShell, so where are these properties stored, for both versions? Is there an easy way to back them up and restore them at a later date if future changes have been made? If not, is it possible to keep these seetings in my PowerShell profile somehow?

enter image description here

Best Answer

The color settings are stored in the powershell shortcut.

Each user has their own shortcut in C:\Users\[User]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell

You can create multiple shortcuts to powershell with different font/color settings by looking at the properties panel for that shortcut.

You can save the shortcut anywhere, and even use it on other computers with the color and font settings saved.

Related Question