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?
42 Answers
You can do this through the DISM.EXE /Online /Add-ProvisionedAppxPackage command. More info here
You can use Add-ProvisionedAppxPackage with PowerShell script to install UWP Sideloading packages with certificate:
- You must choose a local or network path and copy all the package folder content.
- Run powershell 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- Wait, it takes a while.
- If there are some depencies use
/DependencyPackagePath:[pathDependcies]
I hope that I could help someone with that. :)