Skip to content
Windows

How to Open Windows Terminal as Admin Automatically

Richard
Written by
Richard
Updated 7 min read
How to Open Windows Terminal as Admin Automatically
How to Open Windows Terminal as Admin Automatically
Before you start
  • 2 steps
  • Needs administrator rights

To open Windows Terminal as admin every time, turn on the Run this profile as Administrator setting for the Defaults profile in Terminal’s Settings. Windows Terminal is an app that puts Command Prompt, PowerShell and other command-line shells in one window, and it opens with standard user rights by default.

Three methods are covered here: the Settings screen, the JSON settings file, and a desktop shortcut set to run as administrator. The first two change the same Terminal option. The shortcut leaves Terminal’s settings alone. All three work the same on Home and Pro editions of a currently supported Windows 11 version (25H2 or 26H2).

⚡ Quick Answer

To make Windows Terminal always open as administrator, open Settings, select Defaults under Profiles, and switch on “Run this profile as Administrator”, then click Save. Terminal applies the change straight away, and each launch shows a User Account Control prompt. Click Yes, and the title bar reads “Administrator”.

Advertisement

How to Make Windows Terminal Always Open as Admin

The Settings screen is the most direct route, and it needs no file editing. You turn on the admin option for the Defaults profile, which applies to every profile that doesn’t override it.

  1. Open the Windows Terminal app: Click the Start menu button, type Terminal in the search box, and then click Windows Terminal in the results. A terminal window opens with a tab at the top.
  2. Go to Settings: Click the down arrow next to the tabs at the top. Then click Settings (or press Ctrl + ,). The Settings screen opens with a sidebar on the left.
Opening Windows Terminal app
open the Terminal app in Windows
Windows Terminal Settings button
Windows Terminal Settings button updated
  1. Select the Defaults profile: Click Defaults under the Profiles section in the left sidebar. Settings here apply to all your profiles, such as PowerShell and Command Prompt, unless a profile has its own value for the same setting.
  2. Turn on the admin option: Find the setting labeled “Run this profile as Administrator” and switch the toggle to On. It sits among the additional settings for the profile, so scroll down if you don’t see it at first.
Run Windows Terminal as Administrator setting
Run the Terminal window as administrator in Windows
  1. Save the change: Click the Save button at the bottom of the window. Terminal applies the change straight away.
  2. Test it: Close Windows Terminal and open it again. A User Account Control prompt appears, because Terminal is asking for administrative access. Click Yes. If you sign in with a standard account, Windows asks for an administrator’s credentials instead.

That’s it. Terminal now opens elevated, and the title bar shows “Administrator” so you can confirm it.

Advertisement
📝Good to KnowThe prompt appears every time. That is normal Windows behavior and not a fault in Terminal. If a profile still opens without admin rights, it probably has its own setting that overrides the default. Open that profile in Settings and turn on the same option there.

To undo the change, go back to Settings Defaults, switch the toggle to Off, and click Save.

Another Way: Use the JSON File to Make Terminal Run as Admin

💡TipIf you prefer to work in code, you can set the same option by editing the settings file directly. This also helps if you copy your Terminal configuration between PCs, because the option travels with the file.
  1. Open Settings: Open Windows Terminal, click the down arrow on the top bar, then click Settings.
  2. Open the file: Click Open JSON file at the bottom left of the Settings screen. If Windows asks which app to use, pick a text editor such as Notepad.
Open JSON file in Windows Terminal
Windows Terminal open json file

The JSON file opens in your default text editor. It is a plain-text file where settings are written as names and values inside braces.

  1. Find the defaults section: Look for the section that holds the settings shared by all profiles. Be careful with the commas and braces. A missing comma between two lines stops Terminal from reading the file correctly.
Windows Terminal profile section in JSON file
Terminal app profile section
  1. Add the admin line: Add the following line inside the "defaults" block to enforce administrative privileges:
    💻Code
    "elevate": true,

To revert the behavior later, change the value:

💻Code
"elevate": false,

Here is how it looks in context:

💻Code

"defaults": {
    "elevate": true
},
  1. Save the file: Save the file and close the editor. Then reopen Windows Terminal to test it.

That’s it. Each time you launch Windows Terminal from now on, it asks for admin rights whenever that line evaluates to true. You see the same User Account Control prompt as with the Settings method. The two methods control the same option, so a change made in one shows up in the other.

A third method leaves Terminal’s settings untouched: a desktop shortcut set to run as administrator. Double-clicking it opens an elevated Terminal every time, however Terminal is configured. It suits you if you want one icon that always opens a full-access console and prefer to keep your normal Start menu entry unelevated.

  1. Create the shortcut: Right-click an empty spot on your desktop and select New Shortcut. The Create Shortcut wizard opens.
  2. Set the location: In the location box, enter the command that launches Windows Terminal. Click Next and give the shortcut a name.
  3. Open Properties: Right-click the new shortcut and select Properties. The Properties window opens on the Shortcut tab.
  4. Open the advanced options: Click the Advanced button.
  5. Set it to elevate: Tick Run as administrator and click OK.
  6. Apply the change: Click Apply before you close the Properties window, or the change is lost. Then click OK.

That’s it. The shortcut icon now shows a small shield overlay, and opening it triggers the User Account Control prompt before Terminal starts with full rights.

If the Run as administrator box is greyed out, you probably created a shortcut type that doesn’t support it. Create a new shortcut to the Terminal app instead. To undo the change, open the shortcut’s Properties and clear the checkbox, or delete the shortcut.

Windows Terminal also accepts launch parameters, called arguments. One of them forces an elevated window when you start Terminal from the Run dialog (Win+R) or from a script. Press Enter and approve the User Account Control prompt. This is handy for batch files and quick access when you don’t want to change any settings.

Advertisement

Summary

  • Windows Terminal lets you run command-line apps like PowerShell and Command Prompt in one window.
  • You can set it to always open as administrator, so you don’t have to right-click every time.
  • Use the Settings screen or edit the JSON file to turn this on or off. A desktop shortcut set to run as administrator gives you an elevated Terminal without changing either.
  • Running Terminal as admin lets you run commands that need extra permissions. Windows will still ask you to confirm each launch.

Setting Windows Terminal to open as admin saves time if you regularly run commands that need extra system permissions. Use the Settings screen, the configuration file or a dedicated shortcut, and you won’t need to right-click the app icon again. Since every command you type in an elevated window runs with full rights, turn the option off if you stop needing it.

Frequently asked questions

How to stop terminal automatically as administrator?

To stop Windows Terminal from opening as administrator, press Ctrl + , to open Settings. Under Profiles, select Defaults, then turn off Run this profile as administrator. Click Save. The app will open with standard user rights the next time you start it, and you can still choose Run as administrator when you need it.

How to enable terminal auto start as admin?

Open Windows Terminal and press Ctrl + , to go to Settings. Under Profiles, select Defaults, turn on Run this profile as administrator, and click Save. Every profile that doesn't override this setting will now open with admin rights. Windows will show a User Account Control prompt each time you open the app, so click Yes to continue.

Why does the terminal always open with amministrator?

Windows Terminal usually opens as administrator because the Run this profile as administrator option is turned on in its Defaults profile. Another common cause is a shortcut set to run as administrator. Check the Defaults profile in Settings first, then check the shortcut's Properties: click Advanced on the Shortcut tab and look for Run as administrator.

Why does the terminal always open with administrator?

If Windows Terminal keeps launching with admin rights, the setting is probably switched on. Open Settings with Ctrl + , and look under Defaults in the Profiles section for Run this profile as administrator. Turn it off and save. If it still opens elevated, check whether the shortcut you use is set to run as administrator.

How to go into admin mode from Windows terminal?

To open Windows Terminal in admin mode, click the Start menu, type Terminal, then right-click Windows Terminal in the results and choose Run as administrator. Click Yes on the User Account Control prompt. The window will open with full system permissions, and you can run commands that need them.

How to open Windows terminal?

Click the Start menu button, type Terminal in the search box, and click Windows Terminal in the results. You can also press Win+X and choose Terminal from the menu. A window opens with a tab ready for Command Prompt or PowerShell.

Still have a question?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked * How we handle comments