Export command prompt and powershell settings/colors/position


  1. Posts : 134
    Windows 10 PRO
       #1

    Export command prompt and powershell settings/colors/position


    How can it be done? I've seen a similar thread for Windows 7 at SevenForums and people there say that settings of cmd are stored in "HKEY_CURRENT_USER\Console" but it doesn't look like it's the same on Windows 10 I've exported the whole "console" category from the registry, then replaced and recolored cmd/powershell and exported again, but the exported file is exactly the same as before. I've restarted the computer but it's still the same.
      My Computers


  2. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #2

    Hello @bl00keRs,

    bl00keRs said:
    How can it be done? I've seen a similar thread for Windows 7 at SevenForums and people there say that settings of cmd are stored in "HKEY_CURRENT_USER\Console" but it doesn't look like it's the same on Windows 10 I've exported the whole "console" category from the registry, then replaced and recolored cmd/powershell and exported again, but the exported file is exactly the same as before. I've restarted the computer but it's still the same.
    Have you tried manually changing the properties while inside the PS console itself?

    Also, you might find this interesting . . .

    => How to Customize Fonts, Colors, Window Size and More With Powershell or Command Prompt

    I hope this helps!
      My Computer


  3. Posts : 134
    Windows 10 PRO
    Thread Starter
       #3

    Did you read my post? Your answer has nothing to do with my question.
      My Computers


  4. Posts : 16,781
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #4

    Don,

    I have experimented with this.

    The properties of the command console are entirely controlled by & saved within the shortcut /method that opens it.
    - Changes you make are applied to the next time you open the console with that shortcut.
    - Changes you make after having opened it using the Run dialog are applied straightaway.
    - There are no changes recorded in the Registry when making changes to console properties.
    - So you could, if you wanted, have ten shortcuts to open a cmd window with different properties set for each one.

    So the only method of exporting/backing up is to copy the shortcut[s] you use.

    I only keep two cmd shortcuts and I have their properties set just so I do not forget which one I'm using.
    - Normal cmd window - calm blue background
    - Admin cmd window - maroon background, shortcut property set to prompt for Admin permission

    I know that something does write to the Registry key you mentioned
    HKEY_CURRENT_USER\Console
    because its current entries are not the same as those in my backups.
    - I have never managed to catch the changes happening so I do not know what causes them.
    - According to How to Set Command Prompt Default Window Size and Position - Winhelponline, that Registry key contains defaults that will be used by future shortcuts & currently uncustomised ones.
    - I also know that there is more going on than I understand because if I copy my two cmd shortcuts to the SendTo folder, they lose the shortcut-set properties when the cmd windows open [but the shortcuts themselves in SendTo still have their previous properties when I check them again afterwards & they open as expected if I double-click them in there.].

    I used NirSoft RegFromApp to investigate this.

    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:26.
Find Us




Windows 10 Forums