Add shortcut to open terminal as administrator #17345

Open
opened 2026-01-31 05:39:50 +00:00 by claunia · 0 comments
Owner

Originally created by @neelkarma on GitHub (Apr 27, 2022).

Description of the new feature/enhancement

Right now, when you are working inside the terminal, and you suddenly realise that you need to run a command that needs administrator privileges, you currently need to:

  1. Open the start menu
  2. Search for Windows Terminal
  3. Right-click
  4. Click "Run as Administrator"
  5. Open the correct shell if you were using one other than the default
  6. Navigate to the directory you need to run the command in
  7. Run the command

This might not seem like a lot, but it ruins your flow and the time wasted adds up if this happens regularly.

A button in the dropdown menu and/or the command palette to reopen Windows Terminal as administrator would be nice and get rid of the need to interact with anything outside the terminal.

Proposed technical implementation details (optional)

When the aforementioned button is clicked, open a separate instance of Windows Terminal running as administrator, preferably with the same shell and cwd as the previously active non-administrator terminal tab.

Originally created by @neelkarma on GitHub (Apr 27, 2022). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> Right now, when you are working inside the terminal, and you suddenly realise that you need to run a command that needs administrator privileges, you currently need to: 1. Open the start menu 2. Search for Windows Terminal 3. Right-click 4. Click "Run as Administrator" 5. Open the correct shell if you were using one other than the default 6. Navigate to the directory you need to run the command in 7. Run the command This might not seem like a lot, but it ruins your flow and the time wasted adds up if this happens regularly. A button in the dropdown menu and/or the command palette to reopen Windows Terminal as administrator would be nice and get rid of the need to interact with anything outside the terminal. # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. --> When the aforementioned button is clicked, open a separate instance of Windows Terminal running as administrator, preferably with the same shell and cwd as the previously active non-administrator terminal tab.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 05:39:51 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17345