winget is not recognized as the name of cmdlet

Pavel yannara Mirochnitchenko 12,371 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.
8,585 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.
901 questions
0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Pavel yannara Mirochnitchenko 12,371 Reputation points MVP
    2024-05-08T16:46:15.31+00:00

    The issue to get Winget recognized behind system context will be solved with this command:

    Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe

    But the major issue in Winget is, that it does not use winget resource after OS installation or windows enrollment, it will then use only msstore repository. I have MS case opened because of this. I will keep your posted.

    0 comments No comments

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