-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apps run with Keyboard Manager do not respect the selected elevation mode when running PowerToys in administrator #32206
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
@jacko-png |
Apps.run.with.Keyboard.Manager.do.not.respect.the.selected.elevation.mode.when.running.PowerToys.in.administrator.mp4 |
@jacko-png But you wrote something about a wrong working directory. And I don't understand exactly how this problem behaves. Can you post a screenshot for this too please. |
<removed to keep the scrolling clean, I had screenshots and a description of the working directory issue which is separate> |
@jacko-png |
Yes, the -d option does this. It's not listed in the --help page, however, so I had to find it on MSDN. For any future commenters, let's return this thread to the elevation issue. |
Can you please update the issue description to only describe the elevation issue and add a note that the folder thing is caused by wt. Currently tytle and description are different and this is confusing. |
Good idea 👍. I was thinking of ways to clean it up and forgot I could edit. |
I have been contemplating a potential enhancement or feature request regarding the search functionality. Currently, when searching for the Command Prompt (Alt+Tab), there is no apparent option to launch it with administrative privileges directly from the search results. I would like to propose the ability to right-click or use an alternative mechanism within the search results to open the Command Prompt in Administrator mode. This would streamline the process of executing commands that require elevated permissions without the need for additional steps. |
@Feejus Does your feature request relate to this issue, which is about administrator PowerToys not starting programs in normal mode? |
@jacko-png As to your question, I am afraid no. When I press "Alt+Space" with PowerToys running, and search for CMD or Terminal, the search results allow me to open these applications. However, when I launch them through this method, they start in a regular user session, without elevated administrative privileges. If I search in the Start menu I see an option to run CMD as administrator, the alternative is to right-click the search and I get a menu which has "run as admin". Thanx |
You're in the wrong thread. This is a bug, and that's a feature request. You're talking about Power Toys Run, and we're talking about Keyboard Manager. By the way, press Ctrl + Shift + Enter next time you try. Should be able to run an administrator command prompt from PowerToys Run. |
@htcfreek |
For example, PowerToys Run launches software in normal mode unless you hold Ctrl + Shift, even in administrator mode. PowerToys.Run.can.start.software.in.normal.mode.mp4The video shows a normal command prompt and that PowerToys is running as administrator. |
Thanx for clarification. I very much appreciate it. The reason I did not raise it as FR is that this would work equally as well for me. I.E if the Powertoys is running in Admin and I run CMD, it should run it with admin privileges. |
In my tests, I noticed that this bug also happens with other UWP apps (like Notepad), but it doesn't happen with desktop apps (like Excel, Photoshop, cmd etc). You can check if an app is running elevated with the Task Manager (go to the |
@jaimecbernardo |
So this is a bug? I'd figured it might have just been a natural consequence of how Windows works, considering how any process opened out of an elevated terminal will be elevated as well, but that it doesn't occur with native apps does suggest otherwise... |
Any chance we can get some priority on this? It's a rather troublesome bug... |
Microsoft PowerToys version
0.79.0, 0.80.0
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
Keyboard Manager
Steps to reproduce
I'll put details in brackets
✔️ Expected Behavior
Windows Terminal, the app opened by a remapped shortcut, is opened with normal privileges
❌ Actual Behavior
Windows Terminal, the app opened by a remapped shortcut, is opened with adminstrator privileges
Other Software
Windows Terminal 1.19.10821.0
Windows 10 22H2 build 19045.4170
UAC Settings is set to Never Notify (i.e. skip administrator password entry)
The text was updated successfully, but these errors were encountered: