Is it possible to have elevated consoles follow default terminal setting? #20439

Closed
opened 2026-01-31 07:13:52 +00:00 by claunia · 2 comments
Owner

Originally created by @zamadatix on GitHub (Sep 1, 2023).

This is more a question as I assume the problem comes down to my ignorance about voodoo done for launching elevated sessions.... but, given there is nowadays a way to set the default terminal application, why must elevated console sessions (e.g. running a .bat file as admin or launching diskpart from a non-elevated Terminal session) still default to the legacy Windows Console Host instead of follow the preference like non-elevated sessions do? I thought the reasoning may have to do with the setting being per user but even running Windows Terminal as admin the preference still shows as Windows Terminal.

Originally created by @zamadatix on GitHub (Sep 1, 2023). This is more a question as I assume the problem comes down to my ignorance about voodoo done for launching elevated sessions.... but, given there is nowadays a way to set the default terminal application, why must elevated console sessions (e.g. running a .bat file as admin or launching diskpart from a non-elevated Terminal session) still default to the legacy Windows Console Host instead of follow the preference like non-elevated sessions do? I thought the reasoning may have to do with the setting being per user but even running Windows Terminal as admin the preference still shows as Windows Terminal.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 07:13:52 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Sep 5, 2023):

Basically, we've been tracking this in #10276. The way the default terminal setting works is based off Packaged COM. Unfortunately, Packaged COM still doesn't work for our needs in an elevated context.

Till then, follow /dup #10276

@zadjii-msft commented on GitHub (Sep 5, 2023): Basically, we've been tracking this in #10276. The way the default terminal setting works is based off Packaged COM. Unfortunately, Packaged COM still doesn't work for our needs in an elevated context. Till then, follow /dup #10276
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Sep 5, 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 (Sep 5, 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#20439