-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
PowerShell Core for Windows - add the "Run as Administrator" action to taskbar button. #6649
Comments
I did some quick research on this one and it looks like the old code for this is still here:
|
@KevinMarquette the |
Thanks @KevinMarquette for the research. I will take a look at this one as I would be interested in having this feature as well. |
@SteveL-MSFT |
@bergmeister it seems that with the additions you would need to add to that library, it's not really providing good value to cost. My recommendation would be to write new C# code to wrap the COM code. |
Thanks for the feedback, I had some success. |
@rkeithhill Can you please amend the title to remove the word |
Closes #6649 This is a port of existing C++ Windows PowerShell code from MainEntry.cpp Some of the code has been copied and minified from the WindowsApiPack. The code is not compiled for Linux (not sure also another condition is needed for Windows on ARM?). The code checks if the PowerShell process has a window handle by checking the startupinfo and only then tries to populate the list (and also checks if there is a slot available in the jumplist). Tested on Windows 10 1803, jumpLists have been supported in Windows since Windows 7, which matches what PowerShell Core supports.
With Windows PowerShell pinned to my taskbar, I can easily run it as an administrator with the action at the top:
But with PowerShell Core, this action is missing:
Yeah, I know I can right click on PowerShell-6.x.x and then get the option to run as admin but that is buried UI and is harder to find than it should be.
The text was updated successfully, but these errors were encountered: