Skip to content

make winget run as admin instead of asking for admin on each installer #3185

Answered by mdanish-kh
Sakooooo asked this question in General
Discussion options

You must be logged in to vote

ah cause im having that issue with --all and would like a more hands free experience where i can click one uac prompt and let winget do the rest as i do something else

For that you can run PowerShell/CMD as administrator and accept the UAC prompt once and run winget upgrade --all - this would fail for packages that don't allow installation in an elevated context but to be fair those packages are a very small minority

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@denelon
Comment options

@Sakooooo
Comment options

@Sakooooo
Comment options

@mdanish-kh
Comment options

Answer selected by Sakooooo
@Sakooooo
Comment options

@mdanish-kh
Comment options

@Sakooooo
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #3184 on April 25, 2023 17:51.