2

I cannot change the default Windows Terminal from Powershell to Command Prompt. When click SETTINGS, it does not go to the option page to choose Command Prompt. Can anyone know how to resolve this?

enter image description here enter image description here

Markus Meyer
  • 1,614
VB88
  • 393
  • Very weird. My windows allows me to change it. we seem to have a different version though, as the display of the options is visibly very different. what version of windows 11 is installed? Is it a private pc or company-owned? – Amos Bordowitz Jun 15 '23 at 09:56
  • Also - maybe this will help - https://superuser.com/questions/1683368/cant-set-windows-terminal-as-default-because-it-is-not-detected-in-the-list-of?rq=1 – Amos Bordowitz Jun 15 '23 at 10:00

2 Answers2

5

When you click Settings in the Windows Terminal it tries to open the .json configuration file in a text editor enter image description here

Since the .json file type isn't associated on your computer with any application, the "How do you want to open this file?" pop-up appears.

Click on More apps and select any text editor (Notepad should be good.)

Or rather update your Windows version as well as your Windows Terminal version (if it's not automatically updated with Windows) since nowadays the settings page is already updated not to be simply text editing a .json file: enter image description here

Yisroel Tech
  • 10,827
  • 1
    If this doesn’t work, run “Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage”, and replace “Microsoft.SecHealthUI” with package name for Windows Terminal – Ramhound Jun 15 '23 at 19:59
  • Do you mean like this Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage”, and replace “Windows Terminal” – VB88 Jun 16 '23 at 05:41
2

The normal method for changing the default profile in Windows Terminal is:

  • Open Windows Terminal
  • Click the drop-down icon and select Settings
  • In the Startup section, set "Default profile" to "Command Prompt".
  • Click "Save" and restart Windows Terminal.

The fact that this method does not work is worrying and should be treated. Some advice is given here.

General troubleshooting

If errors are found when running DISM or SFC, return Windows to a known state by doing Repair Install Windows 11 with an In-place Upgrade

Reinstall Windows Terminal from github

Download the latest Windows Terminal from the microsoft / terminal project page.

Download the .msixbundle bundle, double-click it and then click on the "Install" button in the wizard window.

If you encounter a problem with installing the bundle, see the article How to Install MSIXBundle on Windows 10/11 for alternate methods of installation.

harrymc
  • 480,290