Change Windows Terminal Start Behavior in Windows 11
In this article
Yes—you can change what Windows Terminal opens when it starts in Windows 11 by adjusting the Launch mode, default profile, and starting directory in its Settings. The built‑in Settings UI and the underlying JSON file give you fine‑grained control over the initial command line, the profile that launches, and the folder you begin in.
What You’ll Need
- Windows 11 (any edition) with the latest version of Windows Terminal installed from the Microsoft Store.
- An administrator account if you plan to edit the global
settings.jsonfile located in the%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalStatefolder. - A basic understanding of file paths and, optionally, familiarity with JSON syntax for manual edits.
Step‑by‑Step
- Open Windows Terminal. You can launch it from the Start menu, the taskbar, or by pressing Win+R, typing
wt, and hitting Enter. - Enter the Settings UI. Press Ctrl+, (comma) or click the down‑arrow next to the tab bar and choose Settings. The Settings window opens with a left‑hand navigation pane.
- Navigate to the Startup section. In the navigation pane, select Startup. (If you are using an older version, the section may be called General or appear under Appearance; the option is still labeled Launch mode.)
- Choose a Launch mode. Under Launch mode you will see three radio buttons:
- Default profile – opens the profile set as the default.
- Specific profile – lets you pick any profile from a drop‑down list.
- Command line – runs a custom command (e.g.,
pwsh -NoLogo).
- Set the profile or command. If you chose Specific profile, a drop‑down appears; pick the profile you want Windows Terminal to launch (PowerShell, Command Prompt, Azure Cloud Shell, etc.). If you chose Command line, a text box appears; type the exact command you wish to execute on start.
- Define a Starting directory (optional). Below the Launch mode, there is a field labeled Starting directory. Enter an absolute path such as
C:\Users\YourName\Projectsor use a variable like%USERPROFILE%. This directory becomes the working folder for the first tab. - Save the changes. Press Ctrl+S or click the Save button at the bottom of the Settings pane. Windows Terminal will close the Settings UI automatically.
- Test the new behavior. Close all Terminal windows and reopen Windows Terminal from the Start menu. It should now launch with the profile, command, and directory you specified.
- Advanced: Edit the JSON file directly. If you need settings not exposed in the UI (for example, setting
useAcrylicon startup), click Open JSON file in the lower‑left corner of the Settings UI. The file opens in your default editor (usually Notepad). Locate the"profiles"object and add or modify the following keys:{ "profiles": { "defaults": { "startingDirectory": "%USERPROFILE%\\Documents" }, "list": [ { "guid": "{your‑profile‑guid}", "name": "PowerShell", "commandline": "pwsh -NoLogo" } ] }, "defaultProfile": "{your‑profile‑guid}", "launchMode": "specificProfile" }Save the file and restart Windows Terminal to apply the changes.
Common Mistakes
- Choosing a profile that does not exist. The drop‑down only lists profiles that are defined in
settings.json. If you manually delete a profile GUID, the UI will still show the name but the launch will fail. - Using an invalid path for the Starting directory. Windows Terminal does not create missing folders; it merely fails to change the directory and starts in the default location.
- Editing the JSON file without preserving the existing commas or braces. JSON is strict; a missing comma will prevent the entire file from loading, causing Windows Terminal to revert to default settings.
- Confusing the Launch mode radio buttons with the Default profile setting under Profiles > Defaults. The former decides *what* to launch; the latter decides *which* profile is considered “default” when the Launch mode is set to “Default profile”.
Tips
- Use environment variables like
%USERPROFILE%or%WINDIR%in the Starting directory field to make the configuration portable across machines. - If you frequently switch between two start configurations, create two separate profiles (e.g., “PowerShell‑Dev” and “PowerShell‑Admin”) and set the Launch mode to Specific profile. You can then change the default quickly by editing the
defaultProfileGUID in the JSON file. - Enable the Use acrylic material on the background option under Appearance if you want a translucent look on every launch. This setting is saved in the same
settings.jsonfile. - For a quick reset, click the three‑dot menu at the bottom left of the Settings UI and choose Reset to default. This restores the original
settings.jsonwithout affecting your saved profiles.
Troubleshooting
If Windows Terminal does not start with the expected profile or directory, follow these steps in order.
- Restart the application. Close all Terminal windows and open it again. A simple restart clears transient state.
- Check for updates. Open the Microsoft Store, go to Library, and click Get updates. An outdated version may lack the Startup UI you expect.
- Verify the Launch mode setting. Re‑open Settings (Ctrl+,) and confirm that the radio button you selected is still checked. Occasionally a corrupted
settings.jsonwill cause the UI to revert to defaults. - Inspect the JSON file for syntax errors. Open the file via Settings > Open JSON file. Look for a red underline or error message at the bottom of the editor. If you see “Unexpected token” or similar, undo the last edit or copy a clean version from the backup file
settings.json.baklocated in the same folder. - Confirm the profile GUID. In the JSON file, each profile has a unique
guid. If you manually typed a GUID, ensure it matches the one in thelistarray. A mismatch prevents the specific profile from being launched. - Test the starting directory manually. Open a new tab, then type
cd "C:\Path\You\Set". If the path is invalid, Windows will display “The system cannot find the path specified”. Correct the path in Settings accordingly. - Reset to default settings. If none of the above works, use the Reset to default option in the Settings UI. This will recreate a clean
settings.jsonwhile preserving your profile list. After resetting, re‑apply the desired Launch mode. - Reinstall Windows Terminal. As a last resort, uninstall the app via Settings > Apps > Apps & features, then reinstall it from the Microsoft Store. Reinstallation removes corrupted files but keeps your profile data because it is stored in the
LocalStatefolder.
Frequently Asked Questions
Can I make Windows Terminal open automatically when I log into Windows?
Yes. Add a shortcut to wt.exe in the Startup folder (%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup) or create a task in Task Scheduler that runs wt.exe at logon.
Is it possible to launch multiple tabs with different profiles on start?
Windows Terminal’s UI does not support multiple tabs on launch, but you can achieve this by adding a --startingDirectory and --profile argument for each tab in a custom shortcut or by using a PowerShell script that calls wt with multiple new-tab commands.
Why does my custom command line not run when I set Launch mode to Command line?
Make sure the command is a single string without surrounding quotes, and that any required executables are in the system PATH. For example, use pwsh -NoLogo rather than "pwsh -NoLogo". Also verify that the command works when typed directly in an existing terminal.
Can I set a different starting directory for each profile?
Yes. In the Settings UI, select a profile under Profiles > YourProfile and fill the Starting directory field. This overrides the global directory set in the Startup section for that particular profile.
Do these changes affect other users on the same computer?
No. The settings are stored per‑user in %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState. Other accounts have their own separate settings.json files.
What if I want to revert to the original default profile after changing it?
Open Settings, go to Profiles > Defaults, and click the Restore defaults button next to the profile selector. Alternatively, edit settings.json and replace the "defaultProfile" GUID with the one that originally came with the installation.