microsoft / microsoft/winget-cli
Allow Winget to run as another user, or at least disable UAC
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Description of the new feature / enhancement
We are using a RMM tool and want to run a periodic script that would launch winget on workstations, but we can't find a way to make it work like we need to.
If we run it with the logged-on user credentials, UAC will pop up each time an app wants to upgrade, even with the -h or --silent option (I'm assuming it has nothing to do with the UAC prompt then, but more with the actual program window)
If we try to run it with other admin credentials, it will say that the winget command is not recognized (even if it actually works if we log into that particular account).
Having winget run on another admin account (without any prompt appearing on the screen) would be perfect, as it would allow us to upgrade apps easily even on workstations on which users are using a standard account, without disturbing them.
Is there already a way of doing this that we are not aware of ?
Thank a lot !
Proposed technical implementation details
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing issue #1901 and the described winget behavior under RMM execution and alternate administrator credentials. No files, tests, or entry points are identified, so first locate the CLI paths handling UAC, credentials, and silent execution; done would require a defined, reproducible non-interactive behavior and validation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100