Skip to content

Admin shortcuts do not open in Terminal Preview #10276

Closed

Description


Note: 📌 Pinned comment: #10276 (comment)


Windows Terminal version (or Windows build number)

10.0.21390.1, 1.9.1445.0

Other Software

No response

Steps to reproduce

  1. Set WT Preview as the default terminal application following the steps described here;
  2. Launch CMD/PS as administrator.

Expected Behavior

Elevated CMD/PS should respect the default terminal choice just like when non-elevated.

Actual Behavior

CMD/PS open in Terminal only if launched with standard privileges. When launched as administrator they still open in Console Host.
Feedback Hub link: https://aka.ms/AAcrn4y

Activity

  1. ghost added
    Needs-Triage
    on May 29, 2021
  2. ghost added
    Needs-Tag-Fix
    on May 29, 2021
  3. added
    Issue-Bug
    Priority-1
    Product-Terminal
    on May 31, 2021
  4. ghost removed
    Needs-Tag-Fix
    on May 31, 2021
  5. DHowett commented on Jun 1, 2021

    @DHowett
    Member

    Unfortunately, this is by design right now. Due to a limitation in the app platform it is impossible for Terminal to be "discovered" as the handler when the application that needs a terminal is running elevated.

    This is tracked internally at MSFT:39500755. There's a decent amount of platform work that will be needed for this.

  6. added
    Resolution-By-Design
    on Jun 1, 2021
  7. added
    Tracking-External
    and removed
    Resolution-By-Design
    Needs-Triage
    on Mar 1, 2023
  8. 1 remaining item

  9. xparadoxical commented on Mar 29, 2023

    @xparadoxical

    just bumped my head into gerardog/gsudo#117 and, by extension, this. 😔

  10. zadjii-msft commented on Aug 28, 2023

    @zadjii-msft
    Member

    As a 2023 status update: This still doesn't seem to be supported by the platform. We're not sure when the COM team will be able to fix this.

    edit to include some search phrases: defterm elevated admin COM handoff defapp

  11. stdin82 commented on Dec 3, 2023

    @stdin82
  12. DHowett commented on Dec 4, 2023

    @DHowett
  13. locked and limited conversation to collaborators on Dec 4, 2023
  14. unlocked this conversation on Apr 15, 2024
  15. Echostorm44 commented on Aug 5, 2024

    @Echostorm44

    A year later, any update on this? Still an issue in VS2022 and Windows 11.

  16. michalsteyn commented on Aug 23, 2024

    @michalsteyn

    This issue has now been open for over 3 years. Shocking this is taking soo long. For Dev's running VS 2022 as Admin, this is really a pain.

  17. ayanamist commented on Sep 13, 2024

    @ayanamist
  18. PogromistDev commented on Nov 10, 2024

    @PogromistDev

    Visual studio developer command prompt runs in terminal only if you already run terminal as administrator and then executed "Developer Command Prompt for VS 2022" .lnk file or just passed its command directly
    %comspec% /k "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64

  19. Dovias commented on Apr 18, 2025

    @Dovias

    I see some workarounds (in chinese), maybe help: https://t.me/yscschan/7010 https://t.me/yscschan/7014?single

    For anyone wondering how to make this work for now until this gets fixed, you can follow my guide (which is based on the yscshan's findings) which explains how to make Windows Terminal to open when executing PowerShell or Command Prompt executable as an administrator:
    https://gist.github.com/Dovias/75338df14f3fbab19b72eefb7fb9b884

    a0zP7dz3Pf.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-DefAppCulprit-CentennialIssue-BugPriority-1Product-TerminalTracking-External

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions