Skip to content

Commit 2f71aac

Browse files
Merge branch 'main' into microwin-25h2-prepare
2 parents 059b6dc + ff0ca40 commit 2f71aac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

functions/private/Install-WinUtilWinget.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ function Install-WinUtilWinget {
5252

5353
# Check if Windows version supports Repair-WinGetPackageManager (24H2 and above)
5454
if ([System.Environment]::OSVersion.Version.Build -ge 26100) {
55+
Install-Module -Name Microsoft.WinGet.Client -Force -ErrorAction Continue
5556
Repair-WinGetPackageManager -Force -Latest -Verbose
5657
# Verify if repair was successful
5758
$wingetCmd = Get-Command winget -ErrorAction Stop

0 commit comments

Comments
 (0)