If you’re like most people, you probably use the Windows terminal to access your computer’s files and settings. But what if you want to change the default shell? In this article, we’ll show you how to change the default shell in Windows Terminal. This is a useful trick if you want to use a different shell for different tasks, or if you just prefer a different one. First, open the Windows terminal by clicking on the Start button and typing “terminal” into the search box. Once it’s open, type “cmd” into the search box and press Enter. This will open up the command prompt (the black window with all of your commands). Now we’re going to change our default shell. To do this, type “set Shell=c:\windows\system32\cmd.exe” (without the quotes) into the command prompt and press Enter. This will change our default shell to be cmd.exe instead of explorer.exe (the default shell for windows). ..


When you open Windows Terminal, PowerShell launches as your default shell. If you want, you can change this default shell to something of your liking, like Command Prompt or Ubuntu (Linux). This is done by changing a bit of code in the settings file.

Change the Default Shell in Windows Terminal

There’s a code in Windows Terminal’s settings file that decides what shell opens the first. You can tweak this code so that your favorite shell becomes the default in this app.

You can set any shell available in Windows Terminal, including Command Prompt, Ubuntu (Linux), and Azure Cloud Shell, as the default in Windows Terminal.

To do this, open the “Start” menu, search for “Windows Terminal,” and click the app in the results.

On the Windows Terminal window, click the down-arrow icon at the top and select “Settings.”

Windows asks how you want to open the settings file. Select “Notepad” in the list and click “OK.”

In settings, scroll to the section for the shell that you want to make the default. There’s a heading at the top of each section saying what each shell is for.

For example, PowerShell’s section says “Make changes here to the powershell.exe profile.” Similarly, Command Prompt’s section says “Make changes here to the cmd.exe profile.” Ubuntu’s section has “Ubuntu” to the right of “name.”

Now, copy the text that’s written next to “guid” in your shell section. You don’t need to copy the double quotes. Just copy the text inside of the quotes—including the brackets.

Scroll to the top of settings and find the “defaultProfile” field. Remove the text that’s written next to this field and paste your copied guid here. Press Ctrl+V to quickly paste your code.

Now, click File > Save in Notepad to save your changes.

Your selected shell is now the default shell in Windows Terminal.

To make PowerShell the default shell again, copy PowerShell’s guid and paste it next to “defaultProfile” in the settings file.

Windows Terminal has a lot to offer, and you should explore these options to find out all that you can do with this little utility on your PC.

RELATED: The New Windows Terminal Is Ready; Here’s Why It’s Amazing