Launching pwsh using runas doesn't inherit profile's theme #15856

Closed
opened 2026-01-31 04:50:33 +00:00 by claunia · 2 comments
Owner

Originally created by @elsaco on GitHub (Nov 12, 2021).

Windows Terminal version (or Windows build number)

WT 1.11.2921.0

Other Software

Windows 11 build 22000.318

Steps to reproduce

  1. set PS7 as default profile
  2. set Default terminal application to Windows Terminal
  3. change Campbell color scheme to a different one, Solarized Light in this case
  4. start a new WT as admin: start-process -filepath "pwsh" -verb runas

Expected Behavior

A new WT window with elevated privileges

Actual Behavior

A non-WT window is being launched, font is Consolas:

wt_pwsh_runas

Originally created by @elsaco on GitHub (Nov 12, 2021). ### Windows Terminal version (or Windows build number) WT 1.11.2921.0 ### Other Software Windows 11 build 22000.318 ### Steps to reproduce 1. set PS7 as default profile 2. set `Default terminal application` to `Windows Terminal` 3. change `Campbell` color scheme to a different one, `Solarized Light` in this case 4. start a new WT as admin: `start-process -filepath "pwsh" -verb runas` ### Expected Behavior A new WT window with elevated privileges ### Actual Behavior A non-WT window is being launched, font is Consolas: ![wt_pwsh_runas](https://user-images.githubusercontent.com/3933920/141388414-c19522ab-8bc3-4dc2-8bf8-d1dbc7019813.png)
claunia added the Resolution-Duplicate label 2026-01-31 04:50:33 +00:00
Author
Owner

@DHowett commented on GitHub (Nov 12, 2021):

Thanks for the report! Though the steps may be different, this is the same as /dup #10276 (which we should document and/or pin!)

@DHowett commented on GitHub (Nov 12, 2021): Thanks for the report! Though the steps may be different, this is the same as /dup #10276 (which we should document and/or pin!)
Author
Owner

@ghost commented on GitHub (Nov 12, 2021):

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!

@ghost commented on GitHub (Nov 12, 2021): 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#15856