Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run console apps with elevated rights on Terminal instead of Console Window Host #15126

Closed
RomanV0703 opened this issue Apr 6, 2023 · 2 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@RomanV0703
Copy link

RomanV0703 commented Apr 6, 2023

Windows Terminal version

1.16.10262.0

Windows build number

10.0.22621.1413

Other Software

If I run any console app with elevated rights it opens via old 'conhost' / "Console Window Host" instead of Terminal ignoring settings to open Terminal by default.

Screenshot 2023-04-06 175750

For example 'ssh-keygen.exe' from OpenSSH:
Run by double click -> starts in Terminal:
Screenshot 2023-04-06 174902

And via "Run as Administrator" -> starts in older Console Window Host:
Screenshot 2023-04-06 174935
Screenshot 2023-04-06 175003

(Same happens if run from console or a batch file).
Is there a way to avoid such behavior?

Steps to reproduce

  1. Run any console app without elevated rights
  2. Run it with elevated rights

Expected Behavior

App starts in Terminal

Actual Behavior

App starts in Console Window Host

@RomanV0703 RomanV0703 added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Apr 6, 2023
@DHowett
Copy link
Member

DHowett commented Apr 6, 2023

Thanks for the report!

Unfortunately today we can't be the default console for admin applications due to a platform limitation. We're tracking that over in /dup #10276. We have that one closed because it's tracking an internal bug on Windows, but we're definitely still making progress on it. 😄

@microsoft-github-policy-service
Copy link
Contributor

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!

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants