Pressing CTRL+SHIFT, ENTER in Windows Run Dialog should run as admin #9190

Closed
opened 2026-01-31 01:48:18 +00:00 by claunia · 4 comments
Owner

Originally created by @aplocher on GitHub (Jun 22, 2020).

Description of the new feature/enhancement

Would like to be able to open the Windows "Run" dialog (WINKEY+R) and type "wt", then press CTRL+SHIFT+ENTER to open as an Administrator, like I do with "cmd.exe" (or any other app).

I'm not sure if this should be filed as a feature or a bug...

Proposed technical implementation details (optional)

Thanks!

Originally created by @aplocher on GitHub (Jun 22, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement Would like to be able to open the Windows "Run" dialog (WINKEY+R) and type "wt", then press CTRL+SHIFT+ENTER to open as an Administrator, like I do with "cmd.exe" (or any other app). I'm not sure if this should be filed as a feature or a bug... <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. --> Thanks!
Author
Owner

@KalleOlaviNiemitalo commented on GitHub (Jun 22, 2020):

These work, though:

  • Press only the Windows key (not Windows+R), type "wt", and press Ctrl+Shift+Enter.
  • Open %USERPROFILE%\AppData\Local\Microsoft\WindowsApps in File Explorer, right-click wt.exe, and choose Run as Administrator.

I don't understand why it does not work for wt in the "Run" dialog, even though it works for e.g. skype, which likewise has a Microsoft Store signature. Is that caused by something in the AppX manifest?

@KalleOlaviNiemitalo commented on GitHub (Jun 22, 2020): These work, though: - Press only the Windows key (not Windows+R), type "wt", and press Ctrl+Shift+Enter. - Open `%USERPROFILE%\AppData\Local\Microsoft\WindowsApps` in File Explorer, right-click `wt.exe`, and choose Run as Administrator. I don't understand why it does not work for `wt` in the "Run" dialog, even though it works for e.g. `skype`, which likewise has a Microsoft Store signature. Is that caused by something in the AppX manifest?
Author
Owner

@DHowett commented on GitHub (Jun 23, 2020):

So, we heard back from the AppX team about this. It's a bug in the platform 😄 which I am certain is everyone's favorite thing to hear!

@DHowett commented on GitHub (Jun 23, 2020): So, we heard back from the AppX team about this. It's a bug in the platform :smile: which I am certain is everyone's favorite thing to hear!
Author
Owner

@DHowett commented on GitHub (Jun 23, 2020):

It turns out that when an application's alias name doesn't match its filename (as in our case, wt.exe is an alias for WindowsTerminal.exe ), it fails out during elevated launch.

We can fix this by renaming our executable or providing a local shim.

I'm interested in the shim option, as it might solve another issue we've been hitting ...

@DHowett commented on GitHub (Jun 23, 2020): It turns out that when an application's _alias name_ doesn't match its _filename_ (as in our case, `wt.exe` is an alias for `WindowsTerminal.exe `), it fails out during elevated launch. We can fix this by renaming our executable or providing a local shim. I'm interested in the shim option, as it might solve another issue we've been hitting ...
Author
Owner

@ghost commented on GitHub (Jul 22, 2020):

:tada:This issue was addressed in #6860, which has now been successfully released as Windows Terminal Preview v1.2.2022.0.🎉

Handy links:

@ghost commented on GitHub (Jul 22, 2020): :tada:This issue was addressed in #6860, which has now been successfully released as `Windows Terminal Preview v1.2.2022.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.2.2022.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9190