winget is not recognized as the name of cmdlet

Pavel yannara Mirochnitchenko 12,616 Reputation points MVP
2023-06-14T11:44:35.61+00:00

If I try to execute winget as admin, I will get error saying "winget is not recognized as the name of cmdlet" This is seeing on any Windows 11 computer. I already checked variable below. Is the any way to archive this? Because Intune new Store does not contain all apps yet, I am scripting some packages do get installed via WinGet. Application would work if User Context is used, but not with System context.

This problem is seeing only in Windows 11, Windows 10 does not have this problem. Also App Installer from Store is installed, it does not make any difference.

User's image

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,018 questions
Microsoft Intune Application management
Microsoft Intune Application management
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Application management: The process of creating, configuring, managing, and monitoring applications.
963 questions
0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Tim 0 Reputation points
    2023-12-01T08:48:13.7666667+00:00

    I just got this error - turns out the winget version was upgraded.

    Moved from
    c:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.21.2771.0_x64__8wekyb3d8bbwe
    to
    c:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.21.3133.0_x64__8wekyb3d8bbwe


  2. Pavel yannara Mirochnitchenko 12,616 Reputation points MVP
    2024-06-09T14:09:32.7333333+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.