How to set Command Prompt, PowerShell, or WSL as default app for Windows Terminal

To make Command Prompt, PowerShell or WSL open by default in Windows Terminal, open Terminal Settings, select Startup, pick the shell under Default profile and click Save.

This guide also covers making Windows Terminal the default console for every command-line app on Windows 11 and Windows 10, the settings.json method, and fixes when the options are missing.

How to set Command Prompt, PowerShell, or WSL as default app for Windows Terminal
Pick Command Prompt, Windows PowerShell or a WSL distribution under Default profile on the Startup page, then click Save. (Image: Microsoft)

How to change default profile in Windows Terminal

Windows Terminal opens PowerShell in its first tab after installation. The default profile decides which shell opens instead, and which one a new tab uses when you press Ctrl + Shift + T or click +.

  1. Open Windows Terminal.
  2. Select the down arrow next to the + tab button and choose Settings.
  3. Select Startup in the left pane.
  4. Open the Default profile drop-down and choose Command Prompt, Windows PowerShell, PowerShell or your WSL distribution, such as Ubuntu.
  5. Click Save.
  6. Close Terminal and open it again: the first tab now runs the shell you picked.

Default profile vs default terminal application in Windows Terminal

Two different settings share the word default, and most guides mix them up. One picks the shell inside Terminal; the other decides whether Windows opens command-line apps in Terminal at all.

Setting What it controls Where to change it Default value
Default profile Which shell (Command Prompt, PowerShell, WSL) opens when Terminal starts or a new tab opens Terminal Settings > Startup, or defaultProfile in settings.json PowerShell
Default terminal application Which window hosts cmd.exe, PowerShell and other console apps when you launch them from Start, Run or a shortcut Terminal Settings > Startup, Windows Settings, or the console property sheet Windows Terminal on Windows 11 22H2 and later; Windows Console Host before that

Set both if you want typing cmd in the Run box to open Command Prompt as a Terminal tab, and want Terminal itself to start in Command Prompt.

Windows Terminal default profile and default terminal application settings on the Startup page
Default profile picks the shell inside Terminal, while Default terminal application decides which window hosts command-line apps. (Image: Microsoft)

Set Terminal default console on Windows from Terminal

This works on every Windows 11 version, and on Windows 10 version 22H2 once the May 23, 2023 update (KB5026435) or a later cumulative update is installed.

  1. Open Windows Terminal.
  2. Select the down arrow next to + and choose Settings.
  3. Select Startup.
  4. Open the Default terminal application drop-down.
  5. Choose Windows Terminal to host all console apps in Terminal, or Windows Console Host to go back to the classic window.
  6. Click Save.

There is no settings.json property for this option, because it changes a Windows setting rather than a Terminal setting.

Set Terminal default console on Windows 11 from Settings

Windows 11 keeps the same option in the Settings app. Microsoft renamed the page from For developers to Advanced in Windows 11, version 25H2.

  1. Press Win + I to open Settings.
  2. On Windows 11 25H2 or later, go to System > Advanced; on Windows 11 22H2, go to Privacy & security > For developers.
  3. Find the Terminal setting, described as choosing the default terminal app to host command-line apps.
  4. Choose Windows Terminal from the drop-down.
  5. Open Command Prompt from the Start menu to check that it now opens as a Terminal tab.

If neither page is where you expect, type For developers or Advanced in the Settings search box. On a PC managed by a workplace, a policy can grey the option out.

Set Terminal as default console in Windows 11 Settings under For developers
Windows 11 22H2 keeps the Terminal option under Privacy & security > For developers; 25H2 moves it to System > Advanced. (Image: Microsoft)

Set Terminal default console on Windows 10 from Settings

Windows 10 only supports a default terminal on version 22H2 with the May 23, 2023 update, KB5026435, or newer. Install that first through Settings.

  1. Press Win + I and go to Update & Security > Windows Update.
  2. Click Check for updates and install every cumulative update offered.
  3. Restart the PC.
  4. Install or update Windows Terminal from the Microsoft Store.
  5. Type For developers in the Settings search box and open the page.
  6. If a Terminal drop-down is listed, choose Windows Terminal; if not, set it from Terminal's Startup page as shown above.

Set Terminal default console on Windows from JSON file

settings.json controls the default profile, so this is the route for setting Command Prompt, PowerShell or WSL as Terminal's startup shell by hand or across several PCs. The defaultProfile value accepts a profile name or its GUID.

  1. Open Windows Terminal.
  2. Hold Shift and select Settings from the drop-down next to + to open settings.json in your default text editor.
  3. Find the "defaultProfile" line near the top of the file.
  4. Replace its value with the profile name, for example "defaultProfile": "Command Prompt", "defaultProfile": "Windows PowerShell" or "defaultProfile": "Ubuntu".
  5. Save the file and close the editor.
  6. Open a new tab with Ctrl + Shift + T to check that it uses the new profile.

For the stable Store version, the file is at %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json. Holding Alt instead of Shift opens defaults.json, which Terminal regenerates and ignores edits to.

Set Terminal default console on Windows from Console

The classic Windows Console Host window carries the same default terminal setting in its property sheet. Use it on a PC where Command Prompt still opens in the old window.

  1. Open Command Prompt or Windows PowerShell from the Start menu so it opens in the classic console window.
  2. Right-click the window's title bar and select Properties.
  3. Find the Default Terminal Application option in the property sheet.
  4. Choose Windows Terminal.
  5. Click OK, close the window and open Command Prompt again.
Set Windows Terminal as default from the console Properties Terminal tab
Choose Windows Terminal under Default Terminal Application, click OK, then open Command Prompt again to check. (Image: Microsoft)

Open WSL, PowerShell or Command Prompt in Windows Terminal from the command line

The wt command opens Terminal with a named profile, which suits a shortcut or a Run box entry that should always start one shell regardless of the default. Type it in the Run box, the same way you open Command Prompt in Windows 11 with cmd.

wt -p "Ubuntu"

-p opens the profile with that exact name in a new Terminal window. Use "Command Prompt", "Windows PowerShell" or "PowerShell" for the other shells. wt -p "Command Prompt" ; new-tab -p "Windows PowerShell" opens both in one window.

You should see: Windows Terminal opens with the named profile in the first tab.

Open Windows Terminal from the command line with the wt.exe alias switched on
The Terminal app's wt.exe alias is switched on under Apps > Advanced app settings > App execution aliases. (Image: Microsoft)

How to add WSL to Windows Terminal and make it the default

Windows Terminal creates a profile for every WSL distribution automatically, so WSL appears in the Default profile list as soon as you install a WSL distribution.

  1. Right-click Windows PowerShell or Terminal in the Start menu and select Run as administrator.
  2. Run wsl --install to install WSL with the default Ubuntu distribution, or wsl --install -d <DistroName> after checking names with wsl --list --online.
  3. Restart the PC when the install finishes, then open the distribution once to create your Linux user.
  4. Open Windows Terminal Settings > Startup.
  5. Choose the distribution under Default profile and click Save.
  6. To start in your Linux home folder, open the distribution's profile and set its starting directory to //wsl.localhost/Ubuntu/home/<username>.

To have a Command Prompt profile always open elevated, add "elevate": true to that profile in settings.json. The same applies when you run Command Prompt as an administrator outside Terminal: Windows shows a UAC prompt each time.

Add WSL to Windows Terminal with Ubuntu, Debian and kali-linux tab menu profiles
Each installed WSL distribution gets its own profile automatically, so it also appears in the Default profile list. (Image: Microsoft)

Default terminal application option missing in Windows Terminal

The Default terminal application option is missing or greyed out

Windows 10 lacks KB5026435, Terminal is out of date, or an organization policy locks the setting.

  1. On Windows 10 22H2, install the latest cumulative update from Windows Update and restart.
  2. Update Windows Terminal from the Microsoft Store; Windows 11 uses Terminal as the default from version 1.15.
  3. On a work PC, ask your administrator; Microsoft notes that managed devices can have these toggles disabled by policy.

WSL or PowerShell 7 does not appear in the Default profile list

The profile is hidden, or its generator is switched off in settings.json.

  1. Hold Shift and select Settings to open settings.json.
  2. Remove "hidden": true from the missing profile, if present.
  3. Remove "Windows.Terminal.Wsl" or "Windows.Terminal.PowershellCore" from the disabledProfileSources array.
  4. Save the file and reopen Settings > Startup.

Changes to the default profile are not saved

The edit went into defaults.json, which Terminal ignores, or settings.json has a syntax error.

  1. Open settings.json with Shift + Settings, not defaults.json with Alt.
  2. Check that every line in the edited block ends with a comma where needed and that quotes match.
  3. Save the file, close Terminal and open it again to load the corrected settings.

Windows Terminal settings are broken and will not load

settings.json is damaged beyond a quick fix.

  1. Close Windows Terminal.
  2. Delete settings.json and state.json in the LocalState folder listed above.
  3. Open Terminal again; it rebuilds both files with the original defaults, and you can set the default profile again.

Windows Terminal default profile FAQ

How do I make Command Prompt the default in Windows Terminal?

Open Windows Terminal, select the down arrow next to +, choose Settings, then Startup. Pick Command Prompt in the Default profile drop-down and click Save. New windows and tabs then open Command Prompt instead of PowerShell.

How do I set WSL as the default in Windows Terminal?

Install a distribution with wsl –install, then open Terminal Settings > Startup and choose the distribution, such as Ubuntu, under Default profile. Click Save. Terminal creates WSL profiles automatically, so no manual profile is needed.

How do I make Windows Terminal the default console in Windows 11?

Open Terminal Settings > Startup and set Default terminal application to Windows Terminal, then click Save. The same option is in Windows Settings under System > Advanced on Windows 11 25H2 and later, or Privacy & security > For developers on 22H2.

Can Windows 10 use Windows Terminal as the default terminal?

Yes, on Windows 10 version 22H2 after the May 23, 2023 update, KB5026435, or a later cumulative update. Install the update, then set Default terminal application to Windows Terminal on Terminal's Startup settings page.

How do I go back to the old Command Prompt window?

Set Default terminal application to Windows Console Host in Terminal Settings > Startup, or in the Terminal setting in Windows Settings. Command Prompt and PowerShell then open in the classic console window again.

Where is the Windows Terminal settings.json file?

For the Microsoft Store version it is %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json. The fastest way to open it is to hold Shift and select Settings from Terminal's drop-down menu.

What is the default profile in Windows Terminal?

PowerShell is the default profile after Windows Terminal is installed. The defaultProfile setting in settings.json stores it, as a profile name or GUID, and you can change it to Command Prompt, PowerShell 7 or any WSL distribution.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *