Powerhsell / CMD as admin #5934

Closed
opened 2026-01-31 00:25:49 +00:00 by claunia · 3 comments
Owner

Originally created by @kramit on GitHub (Jan 15, 2020).

There may already be a way to do this with adding some info into the JSON profiles.

On the drop down menu for selection of terminal to open in a new tab add options for "powershell (admin) and cmd (admin)" there is still quite a few operations that I need to run as admin and adding a new section into the profiles JSON and calling an admin powerhsell terminal makes it pop out into the old terminal.

Is there a way of acomplishing this? Or is it something that is on the roadmap

Originally created by @kramit on GitHub (Jan 15, 2020). There may already be a way to do this with adding some info into the JSON profiles. On the drop down menu for selection of terminal to open in a new tab add options for "powershell (admin) and cmd (admin)" there is still quite a few operations that I need to run as admin and adding a new section into the profiles JSON and calling an admin powerhsell terminal makes it pop out into the old terminal. Is there a way of acomplishing this? Or is it something that is on the roadmap
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 00:25:49 +00:00
Author
Owner

@gerardog commented on GitHub (Jan 15, 2020):

Workaround: Install gsudo and add a new profile:

    {
      "guid": "{0667cbea-6f8d-43d6-b50a-e4f795569d86}",
      "name": "Elevated PowerShel",
      "commandline": "gsudo.exe PowerShell",
      "hidden": false
    },
@gerardog commented on GitHub (Jan 15, 2020): Workaround: Install [gsudo](https://github.com/gerardog/gsudo) and add a new profile: ``` { "guid": "{0667cbea-6f8d-43d6-b50a-e4f795569d86}", "name": "Elevated PowerShel", "commandline": "gsudo.exe PowerShell", "hidden": false }, ```
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 15, 2020):

/dup #1032

@DHowett-MSFT commented on GitHub (Jan 15, 2020): /dup #1032
Author
Owner

@ghost commented on GitHub (Jan 15, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jan 15, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5934