Relevant area(s)
PowerShell Module
Relevant command(s)
Install-Module Microsoft.WinGet.Client -Force -Scope AllUsers
Repair-WinGetPackageManager
Brief description of your issue
I am running Windows 10 Enterprise LTSC 2019, version 1809, x64.
I would like to be able to install WinGet from an elevated PowerShell with just a few commands.
The first command successfully downloads and installs some dependencies.
The second command fails:
Repair-WinGetPackageManager : Failed to repair winget. Try running with -AllUsers in administrator mode.
At line:1 char:1
+ Repair-WinGetPackageManager
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Repair-WinGetPackageManager], WinGetRepairException
+ FullyQualifiedErrorId : RuntimeException,Microsoft.WinGet.Client.Commands.RepairWinGetPackageManagerCmdlet
If I pass -AllUsers, it also fails:
Repair-WinGetPackageManager : No applicable license found.
At line:1 char:1
+ Repair-WinGetPackageManager -AllUsers
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Repair-WinGetPackageManager], WinGetIntegrityException
+ FullyQualifiedErrorId : RuntimeException,Microsoft.WinGet.Client.Commands.RepairWinGetPackageManagerCmdlet
Claude sent me on an hour-long wild goose chase trying to download random kilobyte-long URLs for dependent packages from Microsoft and it was not pleasant.
Also:
- Why do I have to run a "repair" command to do a first-time install of a package?
- A repair tool that simply reports it cannot repair without any logged output whatsoever is frustrating.
Relevant area(s)
PowerShell Module
Relevant command(s)
Brief description of your issue
I am running Windows 10 Enterprise LTSC 2019, version 1809, x64.
I would like to be able to install WinGet from an elevated PowerShell with just a few commands.
The first command successfully downloads and installs some dependencies.
The second command fails:
If I pass
-AllUsers, it also fails:Claude sent me on an hour-long wild goose chase trying to download random kilobyte-long URLs for dependent packages from Microsoft and it was not pleasant.
Also: