Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am witnessing strange behavior of PowerShell.

Namely when I am running it from Start menu I am getting image on the left, but if I run it from the Run menu (Win + R) I get the image on the right:

Difference in color set and title

The main difference seems to be that DarkMagenta and DarkYellow, which I use as default Background and Foreground colors, respectively, are different in each run and so are Window titles.

What are possible explanations and solutions for this? I am running Windows 7 SP1 64bit as Administrator.

EDIT: OK, I seem to revert the color set to norm by hand-typing numerical values into the "Selected Color" Box. But the question about different properties (as exemplified by Window Titles) still stands.

EDIT2: That's it, I figured it out: When I was running it from Start menu I was in fact clicking a shortcut with different properties then an actual application, when "Run" command ran application directly.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

As you have already discovered, the properties can be changed in the shortcuts, and you can copy and modify the shortcut.

The default settings are in the registry key [HKEY_CURRENT_USER\Console], which can be exported to other user accounts or computers.


EDIT: Actually, that registry key is for CMD (I forgot that this question was regarding PowerShell while I was answering it). I'm not sure where the corresponding one is for PowerShell. It may be hardcoded into PowerShell.

The best way to change the PowerShell console properties is within your profile, as this webpage shows (I don't think the font can be changed this way though).

share|improve this answer
    
Thanks for the comment. I'm marking it as an accepted answer. –  Zotov Sep 24 '11 at 16:02
    
@Zotov: Thanks. I made a correction to my answer. –  paradroid Sep 24 '11 at 16:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.