Deploy an Appx package with the K1000
Hi,
We currently have a request of a client to install a Microsoft Store app, we manage the workstations using the k2000 and k1000.
Does anyone have any idea how to deploy an *.appx file/program using the k1000?
We have tried using a bat script that starts a powershell script, but we get different results constantly, primarily due to permission restrictions.
Using admin credentials with a script also doesn't work.
Lastly, after the deployment failes, Kace tells us that the software is installed succesfully.
There is a custom inventory rule checking if a file is present and the file is not present, but the K1000 thinks there.
Any suggestions, experiences or help is greatly appreciated.
-
Does the Powershell script work by itself locally? - Ziggi 5 years ago
-
Yes, it is a script that uses depency files. The script is a *.bat script that starts the powershell script. - Loei 5 years ago
Answers (2)
You could be running into a sysnative glich where you are executing the 32bit version of PS (C:\Windows\Syswow64\WindowsPowerShell\v1.0) instead of the 64 bit version
http://www.samlogic.net/articles/sysnative-folder-64-bit-windows.htm
try uploading your ps1 file as dependency and use:
Comments:
-
Thank you for your reply.
We have tested your suggestion but it makes no difference, the application does not install. - Loei 5 years ago-
The solution was to use Elevate64 with full privileges. (Example: DISM.exe /Online /Add-ProvisionedAppxPackage /PackagePath:C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\97\Microsoft.MinecraftEducationEdition_1.7.1.0.appxbundle /SkipLicenseā ) - Dirkenator 5 years ago
Powershell:
if($pshome -like "*syswow64*") {& (join-path ($pshome -replace"syswow64", "sysnative")\powershell.exe) -file$myinvocation.mycommand.Definition @args; exit}
$scriptpath = Split-Path $MyInvocation.MyCommand.Path -Parent
Import-Module appx
Add-AppxProvisionedPackage -Online -PackagePath "${scriptpath}\Microsoft.VCLibs.140.00_14.0.30704.0_x64__8wekyb3d8bbwe.appx" -SkipLicense
This works fine for us.