I know there are several posts where users want to install Windows Store Apps for all users. Answers were to use
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?
You can do this through the
DISM.EXE /Online /Add-ProvisionedAppxPackage command. More info here
You can use PowerShell script to install UWP Sideloading packages with certificate:
$localFolderPath = "C:\UWP_184.108.40.206_Test]\*" $localPackage = "C:\UWP_220.127.116.11_Test\UWP_18.104.22.168_x64.msixbundle" $certName = Get-ChildItem -Path $localFolderPath -Include *.cer certutil.exe -addstore TrustedPeople $certName.FullName DISM.EXE /Online /Add-ProvisionedAppxPackage /PackagePath:$localPackage /SkipLicense
After that, all users from this machine will come with a pre-installed package. The real installation of this package will be at first opening from the "Start Menu". You can not call "shell:AppsFolder/[yourpackage]" until the first opening from "Start Menu". I faced a real problem because of that. The only workaround was calling my App by File Association. (My app was designed to open *.xxx files, so when the Windows tries to open this file, it actually installs and open your UWP app.
I hope that I could help some one with that. :)