Repository navigation
Install Adminphobic Packages from Elevated Session #5113
Replies: 1 comment
|
Found a (really funny) workaround: Create a shortcut with the WinGet command and open it using Explorer. Hopefully there can be a more elegant solution in the future. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm putting together a PowerShell script to set up a new Windows installation, and among the tasks I have it completing is the installation of programs through WinGet. However, I'm running into the issue that, for some reason, some packages will refuse to install if run with administrative privileges. Is there any way around this? A way to run WinGet deëlevated for that program or to start an unelevated process that then runs WinGet? Or do I just have to install such packages manually?
All reactions