-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/d-oit/d-oit.github.io
- Loading branch information
Showing
3 changed files
with
178 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: "Winget Not Recognized After Windows Update" | ||
date: 2025-01-01T10:54:33.643Z | ||
thumbnail: | ||
url: img/blog/windows-winget-not-recognized.png | ||
tags: | ||
- WinGet | ||
- Windows | ||
slug: winget-not-recognized-windows-update | ||
--- | ||
|
||
## Fixing Winget Not Recognized After Windows Update | ||
|
||
If you're experiencing issues with Winget not being recognized after a Windows update, you can try reinstalling it using a PowerShell script from PSGallery. This method has worked for me on both Windows 10 and Windows 11. | ||
|
||
### Reinstall Winget Using PowerShell | ||
|
||
Follow these steps to reinstall Winget: | ||
|
||
1. **Open PowerShell as Administrator**: | ||
- Right-click on the Start menu and select "Windows PowerShell (Admin)" or "Windows Terminal (Admin)". | ||
|
||
2. **Run the Following Commands**: | ||
Copy and paste the commands below into the PowerShell window, pressing Enter after each line: | ||
|
||
```powershell | ||
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force | ||
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted | ||
Install-Script -Name winget-install -Force | ||
winget-install.ps1 -Force | ||
``` | ||
|
||
### Source | ||
|
||
This solution is based on the issue reported on the official Winget GitHub page: [Winget GitHub Issue #3832](https://github.com/microsoft/winget-cli/issues/3832). |