mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-08-23 04:16:23 -05:00
Fix invalid Repair-WingetPackageManager
This commit is contained in:
@ -52,6 +52,7 @@ function Install-WinUtilWinget {
|
||||
|
||||
# Check if Windows version supports Repair-WinGetPackageManager (24H2 and above)
|
||||
if ([System.Environment]::OSVersion.Version.Build -ge 26100) {
|
||||
Install-Module -Name Microsoft.WinGet.Client -Force -ErrorAction Continue
|
||||
Repair-WinGetPackageManager -Force -Latest -Verbose
|
||||
# Verify if repair was successful
|
||||
$wingetCmd = Get-Command winget -ErrorAction Stop
|
||||
|
Reference in New Issue
Block a user