Howto Add AppxPackage for All Users
Hi,
we got the problem to Add an Appx Package for all Users with Powershell over PDQ.
The Package is deployed, but the App then runs only under the default PDQ User.
Any Tip how to manage it?
Powershell Skript with the Standard Command Line.. (Add-AppxPackage -Path xxxx) won´t work.
3
Comments
Hi Dirk,
I got it working.
Copy the files that you need to your local computer. (File Copy)
Use the powershell step and type
$localFolderPath = "C:\Temp\Db.App_5.39.12.0"
$localPackage = "C:\Temp\Db.App_5.39.12.0\Db.App_5.39.12.0_x86_x64_arm.appxbundle"
DISM.EXE /Online /Add-ProvisionedAppxPackage /PackagePath:$localPackage /SkipLicense /DependencyPackagePath:$localFolderPath\Dependencies\x64\Microsoft.NET.Native.Framework.2.1.appx /DependencyPackagePath:$localFolderPath\Dependencies\x64\Microsoft.NET.Native.Runtime.2.1.appx /DependencyPackagePath:$localFolderPath\Dependencies\x64\Microsoft.VCLibs.x64.14.00.appx
Legened, this worked for me too. I was trying to deploy Microsoft To Do and ended up with:
Step1: Copy appxBundle file to C:\Temp
Step2:
$localFolderPath = "C:\Temp"
$localPackage = "C:\Temp\ToDo.appxbundle"
DISM.EXE /Online /Add-ProvisionedAppxPackage /PackagePath:$localPackage /SkipLicense
Obtained the appxbundle using:
https://store.rg-adguard.net/