45

I have made several customizations to how the Command Prompt window looks in Windows and now I want to reset it to its original state.

How can I do that? I just want it to look that way it does after you install Windows.

0

4 Answers 4

63

Try deleting the entire HKEY_CURRENT_USER\Console key (export it first just in case) from the registry. It's re-created when you customise any cmd window again, and seems to have done the trick for me in Win7.

4
  • 1
    This seems to be the only trick that works... What's strange though is that the Command Prompt defaults for its main window are different from computer to computer. This is really strange. If you delete these keys the Command Prompt will look different on different computers. Jun 26, 2013 at 11:36
  • I checked on a single PC only, but that's weird. Perhaps there's some sort of auto-customisation done based on certain conditions? Not sure...
    – Karan
    Jun 26, 2013 at 17:13
  • 1
    On a closer look, the settings are generally the same everywhere. The Command Prompt looks different because screen resolutions are different, etc. The same font and size will look different on different displays. Jun 27, 2013 at 18:14
  • That worked for the cmd window. But I usually run a python script that opens a cmd window. Even I have deleted the Console registry entry and I got default settings back for "cmd" window, I still see my customizations to the cmd window opened by my python script. Note that cmd opened by script is named the same as the script file name, if that helps. Oct 15, 2017 at 5:56
5

To reset windows console (CMD):

  • Create restore point of your system (Important).
  • In start menu type RegEdit right click it and run as admin.
  • Now if you modified your console before, you should find a key like this: HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe
  • Only delete that key i.e %SystemRoot%_system32_cmd.exe
  • Restart your system and check your console (cmd) now should be back to defaults.
2

Is this what you are looking for?

cmd defaults

You can also check HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor registry key and delete all the values (upon reopening cmd the default values should be set).

5
  • This will probably not help because of this bug.
    – Karan
    Jun 19, 2013 at 15:48
  • 2
    That does not return the Command Prompt window to the default look and feel. It just opens the customization window where you can change the way it looks. But, there's no reset option, no restore defaults, etc. Jun 20, 2013 at 9:08
  • +1 Despite the fact this is an old thread, this should be the accepted answer. There's absolutely no need to play with registry keys. @Corporate Geek : In fact it's opening the properties window but with the default values, so you just click "OK" and your command prompt comes back to his default look and feel. Also, you will note that this method works for PowerShell as well.
    – TwystO
    Apr 23, 2016 at 22:31
  • 1
    @Twist Wrong. "Defaults" sets properties for all cmd windows. "Properties" sets properties for the current cmd windows only.
    – DavidPostill
    Jul 4, 2016 at 17:32
  • 1
    @TwystO wrong it doesn't even reset my current cmd window even though I have press ok
    – buncis
    Oct 12, 2020 at 12:14
0

The only solution that works OK is the one proposed by @Karan. However, while experimenting, I did learn a couple of important things:

  • The reset is on a per user basis. If you want to reset the looks of the Command Prompt window for all user accounts, you have to manually use the same procedure individually, for all accounts.
  • The reset is performed for both the Command Prompt and PowerShell. Apparently, they use the same registry key to store their visual settings.
  • The way the windows of these tools look, differ from computer to computer. It seems that the resolution you are using is an important factor in how their windows are drawn on the screen.

In order to help others, I summarized all my learning in a complete step by step tutorial. Also, I created a registry file that can be run in order to reset all visual settings as quickly as possible. Everything can be found here: How to Reset the Looks of the Command Prompt or PowerShell Window.

Thank you all for helping me out. This problem was really bugging me.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .