locked
Manage Microsoft Store apps with Powershell RRS feed

  • Question

  • Hello,
    first of all we have searched for a long time, but unfortunately we did't find a solution.

    Is there a way to control the local Mircosoft store with Powershell to install apps?

    With the commands:

    Add-AppxPackage
    Install-PackageProvider 

    we didn't succeed in accessing the Microsoft Apps store to install online packages.

    Friday, August 9, 2019 11:03 AM

Answers

All replies

  • Hi,

    When you say control, what exactly you want to do using powershell? Can you please give some use cases or examples?

    You can configure policies for Windows Store Apps using Group Policy.


    Thanks, Rajiv Iyer


    • Edited by Rajiv IR Friday, August 9, 2019 12:34 PM
    Friday, August 9, 2019 12:33 PM
  • Hi, Rajv,

    we want to install shop apps via Powershell. For example 7zip.  

    - https://www.microsoft.com/de-de/p/7-zip-compressor/9n2rwsgzctcs?activetab=pivot:overviewtab

    Friday, August 9, 2019 1:16 PM
  • Hi,

    Thanks for your question.

    Sorry. I don't think you can install windows store app by powershell. As far as I know, you can use "Add-AppxPackage"to reinstall apps the current user removed or that got "lost" in some Insiders update. You cannot sideload an app that has been downloaded from the Microsoft Apps Store. 

    But I will help you to feedback your request to install/remove store apps by powershell.

    Please refer the link below:

    https://github.com/Microsoft/windows-dev-box-setup-scripts/issues/30

    Best regards,

    Lee


    Just do it.

    • Marked as answer by jrv Tuesday, August 20, 2019 3:56 AM
    Monday, August 12, 2019 7:37 AM
  • If you had the appx package, you could provision it for new users with "add-appxprovisionpackage -online" https://docs.microsoft.com/en-us/powershell/module/dism/add-appxprovisionedpackage?view=win10-ps
    • Edited by JS2010 Monday, August 12, 2019 4:56 PM
    • Marked as answer by jrv Tuesday, August 20, 2019 3:56 AM
    Monday, August 12, 2019 1:33 PM
  • For few users or computer, you can have Group policy to install softwares. But in case if number of computer or users are high, this will impact your performance.

    If the number of users are high, you can use SCCM, and push software on multiple computers easily.

    Monday, August 12, 2019 2:27 PM