8

I know there are several posts where users want to install Windows Store Apps for all users. Answers were to use DISM.

In my case I can not use DISM because all clients are already deployed. If a user requests a new app at the supports center, the package will be deployed to his machine.

This package (*.appx) should be deployed to the machine not only for the user.

Is there a powershell command to achive this?

Martin
  • 202

2 Answers2

2

You can do this through the DISM.EXE /Online /Add-ProvisionedAppxPackage command. More info here

1

You can use Add-ProvisionedAppxPackage with PowerShell script to install UWP Sideloading packages with certificate:

  1. You must choose a local or network path and copy all the package folder content.
  2. Run as Administrator:
$localFolderPath = "C:\UWP_1.0.0.0_Test]\*"
$localPackage = "C:\UWP_1.0.0.0_Test\UWP_1.0.0.0_x64.msixbundle"
$certName = Get-ChildItem -Path $localFolderPath -Include *.cer

certutil.exe -addstore TrustedPeople $certName[0].FullName
DISM.EXE /Online /Add-ProvisionedAppxPackage /PackagePath:$localPackage /SkipLicense
  1. Wait, it takes a while.
  2. If there are some depencies use /DependencyPackagePath:[pathDependcies]

I hope that I could help someone with that. :)