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

Closed
opened 2026-01-31 06:49:41 +00:00 by claunia · 2 comments
Owner

Originally created by @RomanV0703 on GitHub (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

Originally created by @RomanV0703 on GitHub (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](https://user-images.githubusercontent.com/6275837/230357784-4dfbaa21-0e6c-4d4a-9bd5-eda0ec18c40d.png) For example 'ssh-keygen.exe' from OpenSSH: Run by double click -> starts in Terminal: ![Screenshot 2023-04-06 174902](https://user-images.githubusercontent.com/6275837/230355904-033af323-06fd-4707-afb1-5f443254ef34.png) And via "Run as Administrator" -> starts in older Console Window Host: ![Screenshot 2023-04-06 174935](https://user-images.githubusercontent.com/6275837/230356120-aa0c4514-3c48-40e6-b609-72765cedc498.png) ![Screenshot 2023-04-06 175003](https://user-images.githubusercontent.com/6275837/230356152-41fa4792-8408-4a58-9b34-0a3a03e8f5b8.png) (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
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 06:49:41 +00:00
Author
Owner

@DHowett commented on GitHub (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. 😄

@DHowett commented on GitHub (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. :smile:
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Apr 6, 2023):

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[bot] commented on GitHub (Apr 6, 2023): 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#19649