microsoft / microsoft/terminal

Run as administrator profiles do not run until terminal is ran as administrator.

Open
#13,675 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Help Wanted Issue-Bug Needs-Tag-Fix Priority-2 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.14.1963.0

### Windows build number

10.0.22000.832

### Other Software

_No response_

### Steps to reproduce

1. Log in to windows as a standard user without administrative permissions
2. Create a new profile and configure it to run as administrator.
3. Save the settings and try to run the profile

### Expected Behavior

When the profile is ran under the standard non-admin account, the system should prompt the user for administrator credentials. Once the credentials are entered, the profile should run in a new windows with administrator permissions.

### Actual Behavior

After entering credentials to the user account control prompt, the profile does not run. Instead it's execution (and appearance of its windows) is delayed until a new instance of terminal is ran as administrator.

This issue does not affect administrator accounts, it only occurs for accounts that are not in the administrators group.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using a standard Windows user, a profile configured to run as administrator, and the listed Windows Terminal and Windows build versions. Trace the profile launch and credential-prompt behavior; done means the profile opens with administrator permissions immediately after valid credentials are entered, without requiring another elevated Terminal instance.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.