Silent, unattended install Microsoft Store apps script for multiple users?
The scenario is I have someone say, “Hey, IT, I found this random Microsoft Store app. Can we install it on a couple dozen multi-user computers?”
I’ve searched and searched. I can’t find any straight forward way of installing this. I want to accommodate them. The app is decent and fills a valuable role. We don’t have Intune or SCCM. Is it possible to install this app? Are there any guides on how to do it?
-
I'm not sure this possible without the appx package. Here's some info from Microsoft: https://docs.microsoft.com/en-us/microsoft-store/distribute-apps-to-your-employees-microsoft-store-for-business - mtatro 4 years ago
Answers (2)
If you want to add a new package for all users, you need to provision the package using Add-AppxProvisionPackage. This will install the app for all users, and when a user first logs on it will (should) install it for them. You also have to have the correct offline installer from Microsoft Store for Business.
Browse the microsoft store online and find your app, then copy the URL. Paste it into https://store.rg-adguard.net/ and choose Retail instead of RP. Download the .appx or .appxbunble that matches your platform. Do not download .eappx, .eappxbundle, or .blockmap. If there are only .msix available, you will need different instructions.
Powershell script:
#Switch to 64-bit powershell if currently 32-bit powershell
if ($pshome -like "*syswow64*") {& (join-path ($pshome -replace "syswow64", "sysnative")\powershell.exe) -file $myinvocation.mycommand.Definition @args; exit}
#Get current script folder path
$scriptpath = Split-Path $MyInvocation.MyCommand.Path -Parent
#Import module for working with AppX through PowerShell.
Import-Module appx
#Install .appx or .appxbundle
Add-AppxProvisionedPackage -Online -PackagePath "${scriptpath}\Microsoft.VCLibs.140.00_14.0.30704.0_x64__8wekyb3d8bbwe.appx" -SkipLicense