Open unclesam87 opened 2 months ago
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!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
@unclesam87 - Have you tried using Add-AppxProvisionedPackage
instead? IIRC, Add-AppxPackage
only installs it for the current user, but Add-AppxProvisionedPackage
will add it for the current user and all new users.
Edit: Whoops, didn’t read far enough; Now I see it at the bottom
I'm not sure, but could a Group Policy setting be causing an issue?
We built the Repair-WinGetPackageManager
cmdlet in the Microsoft.WinGet.Client PowerShell module to help with bootstrapping WinGet.
Repair-WinGetPackageManager -Latest -force
should ensure the latest stable version of WinGet (known to the version of the module) is installed and functioning.
thank u! this function has to be run for every user who tries to run winget right? or can we automate this a bit?
You could leverage the Microsoft.WinGet.Client PowerShell module to automate the process of ensuring the latest stable version of WinGet is installed using the Repair-WinGetPackageManager cmdlet:
Repair-WinGetPackageManager -Latest -Force
Brief description of your issue
We like to use Winget to supply computers with complete software. Unfortunately, we are currently unable to install Winget in such a way that it is available to all users. This is a big problem for our admins (they are in a local admin group, but use domain accounts). Whenever they start an administrative cmd, they get an error that Winget cannot be found. This is our current code to install Winget on the devices:
If you have any better ideas or if it is a feature that is missing, please mark it - we are grateful for everything! And thanks for all the work on Winget!
Translated with DeepL.com (free version)
Steps to reproduce
install winget and use an different user from that system
Expected behavior
install winget and use it with every user (even ones that comes later to that system as an domain user;))
Actual behavior
winget couldnt be found
Environment