How to reset the looks of the Command Prompt window, in Windows?

44

14

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.

Corporate Geek

Posted 2013-06-19T10:21:38.467

Reputation: 1 882

Answers

58

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.

Karan

Posted 2013-06-19T10:21:38.467

Reputation: 51 857

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. – Sнаđошƒаӽ – 2017-10-15T05:56:01.160

1This 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. – Corporate Geek – 2013-06-26T11:36:13.003

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 – 2013-06-26T17:13:38.610

1On 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. – Corporate Geek – 2013-06-27T18:14:28.357

3

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).

Mache

Posted 2013-06-19T10:21:38.467

Reputation: 134

+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 – 2016-04-23T22:31:58.440

@Twist Wrong. "Defaults" sets properties for all cmd windows. "Properties" sets properties for the current cmd windows only. – DavidPostill – 2016-07-04T17:32:09.517

This will probably not help because of this bug.

– Karan – 2013-06-19T15:48:41.813

1That 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. – Corporate Geek – 2013-06-20T09:08:07.850

3

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.

Ashraf Abusada

Posted 2013-06-19T10:21:38.467

Reputation: 194

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.

Corporate Geek

Posted 2013-06-19T10:21:38.467

Reputation: 1 882