Terminal Profile should allow for running as admin or other user in Tab #2901

Closed
opened 2026-01-30 23:08:26 +00:00 by claunia · 2 comments
Owner

Originally created by @jkavanagh58 on GitHub (Jul 23, 2019).

Summary of the new feature/enhancement

This might be related to #1133
When creating a new profile there should be an option to runas ... I have seen mention of security issues... My current workstation I have a CLI as standard, then I have one that was launched As Administrator and then another CLI that runs as a different user, a user that has elevated privileges in the domain. I have a sudo like function I can use once the tab starts but that seems to fail. I thought using a GUID that correlates to Admin or the domain admin type account but that does not seem to work.

Proposed technical implementation details (optional)

Include an option to run elevated or provide a credential object in the profile
{
"acrylicOpacity" : 0.30000001192092896,
"background" : "#012456",
"backgroundImage" : "C:\users\johnk\Pictures\powershell-wmi1.jpg",
"backgroundImageOpacity" : 0.34999999403953552,
"closeOnExit" : true,
"colorScheme" : "Campbell",
"commandline" : "powershell.exe",
"AsAdmin": true,
"credObject" : <notsurehow to grab PSCredential but it would be my FeatureRequest",
"cursorColor" : "#FFFFFF",
"cursorShape" : "underscore",
"fontFace" : "ProFontWindows Nerd Font",
"fontSize" : 12,
"guid" : "{d5e8489d-3400-4ea9-9eb7-d723fb4f19f5}",
"historySize" : 9001,
"icon" : "ms-appdata:///roaming/powershell-wmi1.jpg",
"name" : "Windows PowerShell",
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"startingDirectory" : "%USERPROFILE%",
"useAcrylic" : false
}

Originally created by @jkavanagh58 on GitHub (Jul 23, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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! --> # Summary of the new feature/enhancement This might be related to #1133 When creating a new profile there should be an option to runas ... I have seen mention of security issues... My current workstation I have a CLI as standard, then I have one that was launched As Administrator and then another CLI that runs as a different user, a user that has elevated privileges in the domain. I have a sudo like function I can use once the tab starts but that seems to fail. I thought using a GUID that correlates to Admin or the domain admin type account but that does not seem to work. <!-- 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). --> # Proposed technical implementation details (optional) Include an option to run elevated or provide a credential object in the profile { "acrylicOpacity" : 0.30000001192092896, "background" : "#012456", "backgroundImage" : "C:\\users\\johnk\\Pictures\\powershell-wmi1.jpg", "backgroundImageOpacity" : 0.34999999403953552, "closeOnExit" : true, "colorScheme" : "Campbell", "commandline" : "powershell.exe", "AsAdmin": true, "credObject" : <notsurehow to grab PSCredential but it would be my FeatureRequest", "cursorColor" : "#FFFFFF", "cursorShape" : "underscore", "fontFace" : "ProFontWindows Nerd Font", "fontSize" : 12, "guid" : "{d5e8489d-3400-4ea9-9eb7-d723fb4f19f5}", "historySize" : 9001, "icon" : "ms-appdata:///roaming/powershell-wmi1.jpg", "name" : "Windows PowerShell", "padding" : "0, 0, 0, 0", "snapOnInput" : true, "startingDirectory" : "%USERPROFILE%", "useAcrylic" : false } <!-- Allow multiple PowerShell tabs with elevated privs or alternate credentials. Otherwise I have to launch terminal as Admin but that seems unnecessary as with just the PowerShell shortcut I can run as Admin or run as another user. Thanks -->
claunia added the Issue-FeatureNeeds-TriageResolution-Duplicate labels 2026-01-30 23:08:26 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jul 23, 2019):

This smells like a dupe of #1032 to me...

@zadjii-msft commented on GitHub (Jul 23, 2019): This smells like a dupe of #1032 to me...
Author
Owner

@ghost commented on GitHub (Jul 25, 2019):

This issue has been marked as duplicate and has not had any activity for 1 day. It will be closed for housekeeping purposes.

@ghost commented on GitHub (Jul 25, 2019): This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2901