Using WinGet to Download Microsoft Store Applications

I recently learned that WinGet 1.8 could be used to download store applications, but when trying out the command suggested here (winget download Calculator -s msstore) from the official link: Use WinGet 1.8 to download Microsoft Store apps | Windows IT Pro Blog it would fail to download the license. After a bit of troubleshooting, and some help from the community (thank you Jason and Gunnar), it turned out that the user running the command must be an Entra ID/Intune user, and be part of any of these Intune roles:

  • Global Administrator
  • User Administrator
  • License Administrator

The Information

If I had paid a little bit more attention to the text when running the command, I would have spotted this text:

Microsoft Store package download requires Microsoft Entra Id authentication. Authentication prompt may appear when necessary. Authenticated information will be shared with Microsoft services for access authorization. For Microsoft Store package licensing, the Microsoft Entra Id account needs to have administrator access to the Microsoft Entra Id tenant.

The WinGet output.

The solution

After granting the user, the Intune License Administrator role, the following command worked just fine. Remember to run it in a non-elevated command prompt:

winget download Calculator -s msstore
User granted the License Administrator

Optional prompts

You can also force prompting for a username by running the following command:

winget download Calculator -s msstore --authentication-mode interactive

Success

Calculator downloaded including the license.
About the author

Johan Arwidmark

5 1 vote
Article Rating
Subscribe
Notify of
guest
6 Comments
Newest
Oldest Most Voted
Zach
Zach
1 year ago

I've having issues with some app installs using winget where I get an error that the APPID cannot be found when running silently in the background via a powershell script. However, when I run the cmd in the prompt it works just fine. Does anyone have a resolution for this… for instance muse.hub threw an error it couldn't be found.

adrian moss
adrian moss
1 year ago

Hi Johan.
Are you aware of the process flow of the updating of the inbuilt none store apps and their requirements to the CDN

André Siedentopf
André Siedentopf
2 years ago

Is there a command like WINGET UPGRADE –ALL for upgrading and updating all the MSSTORE apps?


>