You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Admin shortcuts do not open in Terminal Preview #10276
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.
Reacted by Giovanni, ExE Boss, Reilly Wood, Antorell, Peter Macej, BDisp and PacFox
Reacted by ExE Boss, Reilly Wood, Florian Heberl, Emmanuel Alap, 牧瀬紅莉栖, Silther, xparadoxical, Max Sandberg, Echostorm and Shibeta
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
Activity
DHowett commentedon Jun 1, 2021
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.
1 remaining item
xparadoxical commentedon Mar 29, 2023
just bumped my head into gerardog/gsudo#117 and, by extension, this. 😔
zadjii-msft commentedon Aug 28, 2023
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
stdin82 commentedon Dec 3, 2023
DHowett commentedon Dec 4, 2023
Echostorm44 commentedon Aug 5, 2024
A year later, any update on this? Still an issue in VS2022 and Windows 11.
michalsteyn commentedon Aug 23, 2024
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.
ayanamist commentedon Sep 13, 2024
I see some workarounds (in chinese), maybe help:
https://t.me/yscschan/7010
https://t.me/yscschan/7014?single
PogromistDev commentedon Nov 10, 2024
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=amd64Dovias commentedon Apr 18, 2025
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