Blog Post

Windows IT Pro Blog
2 MIN READ

Use WinGet 1.8 to download Microsoft Store apps

Roy_MacLachlan's avatar
Jul 29, 2024

Windows Package Manager (WinGet) 1.8 now allows IT professionals to download Microsoft Store apps.

What is WinGet?

WinGet is a command-line tool that enables you to install and manage applications on Windows 10 and Windows 11 devices. WinGet supports a variety of sources, and it allows you to automate the installation and update process of applications, as well as to search and discover new apps.

What is WinGet Download?

WinGet Download provides the ability to download Microsoft Store apps for offline distribution to other devices in your network. This feature replaces the Enterprise Offline feature from the Microsoft Store for Business.

How can I use WinGet 1.8 to download Microsoft Store apps?

To use WinGet to download Microsoft Store apps, you need to have the latest version of WinGet installed on your device. You can check your WinGet version by running the command winget --version in a PowerShell or Command Prompt window. If you need to update WinGet, download the latest installer, run the command winget upgrade winget, or update App Installer from the Microsoft Store.

To download a Microsoft Store app, you can use the winget download command. For example, you can run the command winget download Calculator -s msstore to download the Calculator app from the Microsoft Store. This will create a folder in your Downloads directory, where you can find the downloaded app package. You can then copy the app package to another device and install it using the Add-AppxPackage PowerShell cmdlet. Run the command Add-AppxPackage -Path C:\Users\username\downloads\9WZDNCRFHVN5\Calculator.appx to install the Calculator app on another device.

To learn more about WinGet 1.8 and its features, read the Windows Package Manager documentation and winget tool documentation.


Continue the conversation. Find best practices. Bookmark the Windows Tech Community, then follow us @MSWindowsITPro on X and on LinkedIn. Looking for support? Visit Windows on Microsoft Q&A.

Updated Jul 29, 2024
Version 1.0
  • Hi lexcyn. Package download does not require authentication to my knowledge so that succeeding does not mean that license download should or will succeed. That's an odd statement I hadn't seen before. Having global admin is not required, however, it may need to be delegated. I'm going to reach out to Roy_MacLachlan directly as there's something missing here.

  • lexcyn's avatar
    lexcyn
    Steel Contributor

    For some reason it's not allowing me to download any of the package license - not sure if this is expected or not (and yes my account IS authenticated via Entra already as the rest of the package contents download without issue):

     

     

    [Edit] I did see this disclaimer - what does "administrator access to Microsoft Entra Id" mean? Like we need to have Global Admin enabled? Is there a specific role we need?

    "For Microsoft Store package licensing, the Microsoft Entra Id account needs to have administrator access to the Microsoft Entra Id tenant."

     

    And just as another update, after successfully downloading the packages in my previous test, I am now met with the following error, which I assume is being blocked because the download location is HTTP and not HTTPS:

     

    An unexpected error occurred while executing the command:
    WinHttpSendRequest: 12030: The connection with the server was terminated abnormally

     

  • Hi Jason_Sandys,
    thanks for your reply and explanations.

     

    1 + 2) as you can see in my example it does NOT give me the latest Version but a huge bunch of old and more recent versions. OK ... thats not a showstopper, just take the most recent file from the directory and delete the old ones? -> Sadly No! Those Files with Version 2022.xx starting are NOT for Win10 but for Win11, cannot be used on a Win10 machine. And the 2021.xx File needed for Win10 is not there, it would be Microsoft.WindowsAlarms_2021.2403.8.0_neutral_~_8wekyb3d8bbwe.msixbundle but the newest offered is an old, outdated  2021.2101.28.0

     

    My desired result is to download the most current Version of this InBox-Store-App "Windows Clock" for Windows 10.

    But the most recent Version which can be applied to a Windows 10 machine cannot be downloaded by using winget as you can see in my example. 

     

    In Windows Store for business you had to select the Windows-Release (Build-Number) on downloading.

    Now there is NO cmdline-argument for offering this information to Winget.

     

    3) This is currently a paid app (0,99 Euro) for NEW Installs, but it was a free app (Codec) in the past and installed on many machines. So this needs to be Offline-Serviced / Updated. It can be searched and downloaded by using https://store.rg-adguard.net/ but cannot be searched and downloaded by winget. As microsoft says that winget is the successor to "Store for Business" I expect this to be addressed.

     

    4) The account I'm using is authenticated, otherwise downloading the package itself is already blocked. As you can see on twitter this problem is not linked to my account but other users are facing the same issue. Thats not a huge problem for me, because I already have all License-Files and they don't change. Hint for other Volume-License-Users: Just use the Files from Inbox-Apps DVD (Volume-License-Portal-Download, "... InBox_Apps_X22-54603.iso").

     

     

  • Hi Gunnar-Haslinger,

    1) For packaged apps, i.e., UWP/AppX/MSIX apps, the Store doesn't have a discrete version tracking mechanism. It only knows the latest available and published to the Store and so will give you the latest versions published. What's your desired end result when using this switch (besides the obvious)?

    2) Using the search tools at your disposal, you should be able to find the proper apps that work on the different platforms. Looking at the downloads in your screenshots above, multiple versions were downloaded including the following: 2017.920.157.2000, 2022.2401.9.0, 2016.1010.1800.200, 2017.510.2201.2000, 2018.421.8.1000, 2021.2101.28.0, 2022.2304. I don't know what the difference between each of these is as that's defined by the app publisher. I also don't know why the app publisher is making this many different version available. I fully appreciate that's not helpful and adds confusion, but this is not something WinGet can disambiguate and will take a bit of research for apps where this is the case.

    3) Paid apps cannot be downloaded (or installed) using WinGet. This is not anything that WinGet can dictate or change.

    4) Make sure the account you are using is properly authenticated to Entra and avoid using an elevated command prompt. If this persists across multiple apps and identities, please open a support case so that we can investigate.

  • Looks promising, but doesn't work smooth:

    1. Argument "--version latest" doesn't work.
    2. No idea how to get Win10 AppX-Packages, some of them only work for Win11 not for Win10.
    3. Some even don't show up, e.g. "Microsoft HEVC VideoExtensions" not available via WinGet.
    4. Download of the License Files doesn't work. Workaround: Using the Files from Inbox-Apps DVD (Volume-License-Portal-Download, "... InBox_Apps_X22-54603.iso")

    Workaround for getting Win10 AppX-Packages if Winget only gives you Packages for Win11: Use https://store.rg-adguard.net/ ... it lists all available packages. Pick the Version according to your currently installed and Microsoft-Store-updated Win10-InBox-App.

     

    Giving an Example which doesn't work with winget (tested 30.07.2024):

    • I like to download the Inbox-App "Clock" for Offline-Update, I'm on a Windows 10 Enterprise machine.
    • First I check on my Internet-Connected and Microsoft Store enabled machine what my currently installed (updated) version is: 11.2403.8.0
    • Second I check which Version winget offers: Looks fine, correct Version shows up - remember this Version-Number for later!

     

     

     

    PS C:\temp\InBoxApps> winget list "Clock" --source msstore
    Name          Id           Version
    --------------------------------------
    Windows Clock 9WZDNCRFJ3PR 11.2403.8.0
    ​

     

     

     

     

     

    • Now I try to download:

     

    PS C:\Temp\InBoxApps> winget download --id 9WZDNCRFJ3PR --source msstore --download-directory "C:\temp\InBoxApps\" --scope machine --architecture x64 --accept-package-agreements
    Found Windows Clock [9WZDNCRFJ3PR] Version Unknown
    This package is provided through Microsoft Store. winget may need to acquire the package from Microsoft Store on behalf of the current user.
    Agreements for Windows Clock [9WZDNCRFJ3PR] Version Unknown
    Version: Unknown
    Publisher: Microsoft Corporation
    Publisher Url: http://windows.microsoft.com
    Publisher Support Url: http://go.microsoft.com/fwlink/p/?LinkId=282456
    License: http://go.microsoft.com/fwlink/?LinkID=529064
    Privacy Url: http://go.microsoft.com/fwlink/?LinkID=521839
    Copyright: (c) Microsoft Corporation
    Agreements:
      Category: Utilities & tools
      Pricing: Free
      Free Trial: No
      Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
      Seizure Warning: https://aka.ms/microsoft-store-seizure-warning
      Store License Terms: https://aka.ms/microsoft-store-license
    
    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.
    Retrieving Microsoft Store package download information
    Downloading dependency packages from Microsoft Store...
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/b478ed53-87fb-4751-99cf-bb9ddb911a82?P1=1722951629&P2=404&P3=2&P4=MhjlNmH%2b4bExaRFE2KljhkuXsrThcdE2sMTIYzBBNcW%2bVr918lwKmbjSRv4GLa7AMLSCSGvucXBtQM8BjG9i%2bQ%3d%3d
      ██████████████████████████████  3.38 MB / 3.38 MB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Dependencies\Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe.appx
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/6c5ccbb5-88d3-4e90-ac79-3880010d81af?P1=1722951629&P2=404&P3=2&P4=TlldVnFI592OUBPtuoRX71Rq9ebEHPd0NY2jG45cUTKuwvOtvFP%2fA%2b69E%2fADSn3yM%2bkuYPAPywxy11DLYiTabg%3d%3d
      ██████████████████████████████   238 KB /  238 KB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Dependencies\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe.appx
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/44d17d35-035f-4e4f-ab55-13679fdee1fd?P1=1722951630&P2=404&P3=2&P4=bmWIa%2baAPpLqPH5Fq0SumHmy5GAv9k0JjA39uDwkwjqEo9ezAIL2w%2fOQ2tVltkRCSAtM8VcgeV5rhk%2fPoDSVPA%3d%3d
      ██████████████████████████████  20.7 MB / 20.7 MB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Dependencies\Microsoft.WindowsAppRuntime.1.3_3000.934.1904.0_x64__8wekyb3d8bbwe.msix
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/4dd135ac-f0f3-4ae8-b910-14e9839b77cf?P1=1722951630&P2=404&P3=2&P4=JTiWwJGyJgfn5UJcNtSmtz4IQU9BfLZKIKwdcMO0V6ZXIJfX4rsWyE1bCntDcwLEfkxVFSoF%2f22OCIA607WGyw%3d%3d
      ██████████████████████████████  4.96 MB / 4.96 MB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Dependencies\Microsoft.NET.Native.Framework.2.2_2.2.29512.0_x64__8wekyb3d8bbwe.appx
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/251bbb12-dbfc-4820-b0ff-c4dfa70ffb09?P1=1722951630&P2=404&P3=2&P4=PzDNPTJqQ5O%2fuwSWd21Pk8u0fH0nQ3BK3V3dzfuZokbBt1yOOKmm%2bSAFdItkBUzjA95jLVkeqw9VwxDy1YT8YQ%3d%3d
      ██████████████████████████████  4.88 MB / 4.88 MB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Dependencies\Microsoft.UI.Xaml.2.8_8.2310.30001.0_x64__8wekyb3d8bbwe.appx
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/c452d4ef-2486-4efe-9c99-36b3d23e0160?P1=1722951630&P2=404&P3=2&P4=Xk9CfSHdFCojybu6twGCjdGpIgm%2bkYIdpMQFAQvIvR0llx%2buMODR5aEiL0kq7o7S12j3ZKzd6P1AvK0pPxbM%2fw%3d%3d
      ██████████████████████████████   875 KB /  875 KB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Dependencies\Microsoft.VCLibs.140.00_14.0.33519.0_x64__8wekyb3d8bbwe.appx
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/27ca12bc-f81d-45ff-95d0-12ad79f15735?P1=1722951631&P2=404&P3=2&P4=Ji1z27Va6nbFKSS8cXtfMB%2fLLRAH%2f5gFQjW%2bQvMY3HjJc6MbLlv6g8M1QqatujRuPEwY6aMLUaUdnKCuvmGb5A%3d%3d
      ██████████████████████████████  6.44 MB / 6.44 MB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Dependencies\Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64__8wekyb3d8bbwe.appx
    Downloading main packages from Microsoft Store...
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/66e8007d-91fc-4732-af97-3fd0cf4e2b1c?P1=1722951629&P2=404&P3=2&P4=kTBajnYISIHutc71ldcUGDpKWdj2SvTedOxBi7dyUWpxtdhDwEkhe%2bKtoQNBjGRKRNa7LHFNHLcMl%2b%2bPzBDfKg%3d%3d
      ██████████████████████████████  12.5 MB / 12.5 MB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Microsoft.WindowsAlarms_2017.920.157.2000_neutral_~_8wekyb3d8bbwe.appxbundle
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/0c726e0f-d77f-43cc-a889-772c45b9d420?P1=1722951629&P2=404&P3=2&P4=aSwvC50MSGfDfIdVKNIve5rbnZ6rfH968jAqMPpxG6lJC7TTjCE8Rx4NgBlfyGf%2f%2fFM4BuJv1z2%2fGVqlwz83fw%3d%3d
      ██████████████████████████████  31.7 MB / 31.7 MB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Microsoft.WindowsAlarms_2022.2401.9.0_neutral_~_8wekyb3d8bbwe.msixbundle
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/54c9e982-4b3a-4d80-9ec5-34acf13051eb?P1=1722951629&P2=404&P3=2&P4=I0qLj%2bUy9qLFTrNo%2f5B9yMt2zHgl%2bVYnl23aWLr158NEn7SRF1ZSoZBr4AVQSlREU3Z6FFBXYiv7CVVfgUfh1g%3d%3d
      ██████████████████████████████  10.1 MB / 10.1 MB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Microsoft.WindowsAlarms_2016.1010.1800.2000_neutral_~_8wekyb3d8bbwe.appxbundle
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/ea1cb58f-ecf5-44c4-b26d-9211bb72be91?P1=1722951629&P2=404&P3=2&P4=JVfOXZKYKFFnIqGTk6E8j6M%2bIjKB69646AYsHte6l%2fKTimsjdlZBSD7ZaSNqQ%2bO%2b9XJds5hKSP546bJfpSZN5w%3d%3d
      ██████████████████████████████  10.0 MB / 10.0 MB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Microsoft.WindowsAlarms_2017.510.2201.2000_neutral_~_8wekyb3d8bbwe.appxbundle
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/bb3223eb-b57d-4a37-bb94-f34f1a8cf61a?P1=1722951629&P2=404&P3=2&P4=KMM%2fPL1ewC58Z7Mjz0h%2fy1rWCqCvaAymy5vwvlFPnNlzzj%2f7HSVbrx7GwyxW0wCl9%2fG8hW7iOCRcDC33%2bY1PYA%3d%3d
      ██████████████████████████████  9.74 MB / 9.74 MB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Microsoft.WindowsAlarms_2018.421.8.1000_neutral_~_8wekyb3d8bbwe.appxbundle
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/8070b6ce-14d1-44d2-9782-073793ff8c7a?P1=1722951629&P2=404&P3=2&P4=kAE1Db43%2fzxaXoESufyExiRKjacd3znOFwva3DabQhjRl%2fCZOCAbbgszObolz7dHiSmbXWNLvq9lD9WL%2fn4ibw%3d%3d
      ██████████████████████████████  17.0 MB / 17.0 MB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Microsoft.WindowsAlarms_2021.2101.28.0_neutral_~_8wekyb3d8bbwe.appxbundle
    Downloading http://storeapps.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/6a6a98bf-4737-428b-95a4-bda930c165a4?P1=1722951629&P2=404&P3=2&P4=EFO736Lhl6u8oGOYFcgllmUPs%2fCJ0JQJjqIXxJAGqXtmakKH6mOwgMqaAm53PK7wsoG6ZnHB88xOx70VLGK7sw%3d%3d
      ██████████████████████████████  28.2 MB / 28.2 MB
    Successfully verified Microsoft Store package hash
    Microsoft Store package downloaded: C:\temp\InBoxApps\Microsoft.WindowsAlarms_2022.2304.0.0_neutral_~_8wekyb3d8bbwe.msixbundle
    Microsoft Store package download completed
    Retrieving Microsoft Store package license
    Failed to retrieve Microsoft Store package license
    An unexpected error occurred while executing the command:
    0x80190193 : Forbidden (403).​

     

     

     

     

    • No idea, why winget downloaded all those Versions. Check if the needed most current Version "2021.24.03.8.0" = "11.2403.8.0" is included in the downloads? => NO, it isn't!

     

     

     

    PS C:\Temp\InBoxApps> dir
    
        Directory: C:\Temp\InBoxApps
    
    Mode                 LastWriteTime         Length Name
    ----                 -------------         ------ ----
    d----           7/30/2024  3:40 PM                Dependencies
    -a---           7/30/2024  3:40 PM       10598439 Microsoft.WindowsAlarms_2016.1010.1800.2000_neutral_~_8wekyb3d8bbwe.appxbundle
    -a---           7/30/2024  3:40 PM       10579337 Microsoft.WindowsAlarms_2017.510.2201.2000_neutral_~_8wekyb3d8bbwe.appxbundle
    -a---           7/30/2024  3:40 PM       13123089 Microsoft.WindowsAlarms_2017.920.157.2000_neutral_~_8wekyb3d8bbwe.appxbundle
    -a---           7/30/2024  3:40 PM       10218281 Microsoft.WindowsAlarms_2018.421.8.1000_neutral_~_8wekyb3d8bbwe.appxbundle
    -a---           7/30/2024  3:41 PM       17835259 Microsoft.WindowsAlarms_2021.2101.28.0_neutral_~_8wekyb3d8bbwe.appxbundle
    -a---           7/30/2024  3:41 PM       29666796 Microsoft.WindowsAlarms_2022.2304.0.0_neutral_~_8wekyb3d8bbwe.msixbundle
    -a---           7/30/2024  3:40 PM       33319837 Microsoft.WindowsAlarms_2022.2401.9.0_neutral_~_8wekyb3d8bbwe.msixbundle​

     

     

     

     

     

    • I tested several times: Those Versions seem to be suitable for Windows 11 but not for Windows 10!
    • Even I downloaded it on a Win10 machine i get Files not suitable for Win10 but for Win11
    • And the newest Version for Windows 10 which would be 2021.24.03.8.0 = 11.2403.8.0 is NOT included in this download
    • Try to use Argument "--version" to load "latest" or to load "2021.24.03.8.0" or to load "11.2403.8.0" ... doesn't work ... only says:

     

     

     

    PS C:\Temp\InBoxApps> winget download --id 9WZDNCRFJ3PR --source msstore --download-directory "C:\temp\InBoxApps\" --scope machine --architecture x64 --accept-package-agreements --version latest
    No version found matching: latest
    PS C:\Temp\InBoxApps> winget download --id 9WZDNCRFJ3PR --source msstore --download-directory "C:\temp\InBoxApps\" --scope machine --architecture x64 --accept-package-agreements --version 2021.24.03.8.0
    No version found matching: 2021.24.03.8.0
    PS C:\Temp\InBoxApps> winget download --id 9WZDNCRFJ3PR --source msstore --download-directory "C:\temp\InBoxApps\" --scope machine --architecture x64 --accept-package-agreements --version "2021.24.03.8.0"
    No version found matching: 2021.24.03.8.0
    PS C:\Temp\InBoxApps> winget download --id 9WZDNCRFJ3PR --source msstore --download-directory "C:\temp\InBoxApps\" --scope machine --architecture x64 --accept-package-agreements --version 11.2403.8.0
    No version found matching: 11.2403.8.0
    PS C:\Temp\InBoxApps> winget download --id 9WZDNCRFJ3PR --source msstore --download-directory "C:\temp\InBoxApps\" --scope machine --architecture x64 --accept-package-agreements --version "11.2403.8.0"
    No version found matching: 11.2403.8.0​

     

     

     

     

     

     

    Working Workaround: Use https://store.rg-adguard.net/

  • This is very useful, just tried it, it also downloads the app's dependencies too which is nice!

  • It is a pity that MSStore seems to limit the ability of certain applications to be searchable.