Seite 1 von 1

[resolved] Installation of "msix" package

Verfasst: 03 Sep 2026, 10:03
von bourhis
Hi,

how do I silently install an "msix" package using "Opsi" ?
I tried this in a "Dosbatch" or "Winbatch" section :

Code: Alles auswählen

Add-AppxProvisionedPackage -Online -SkipLicense -PackagePath "C:\tmp\mypackage.msix"
but it doesn't works because "Add-AppxProvisionedPackage" is not a recognized command (only with "PowerShell")...

Best regards

Re: Installation of "msix" package

Verfasst: 03 Sep 2026, 11:37
von bourhis
I find a solution by creating a PowerShell script containing :

Code: Alles auswählen

Add-AppxProvisionedPackage -Online -SkipLicense -PackagePath "\\myserver\myshare\myfile.msix"
and, in a Dosbatch section :

Code: Alles auswählen

PowerShell.exe -ExecutionPolicy Unrestricted -command "%ScriptPath%\myscript.ps1"

Re: [resolved] Installation of "msix" package

Verfasst: 03 Sep 2026, 13:25
von bourhis
In this case (one line PowerShell script) you can execute it directly in the "Dosbatch" section :

Code: Alles auswählen

PowerShell.exe -ExecutionPolicy Unrestricted -command "Add-AppxProvisionedPackage -Online -SkipLicense -PackagePath '\\myserver\myshare\myfile.msix'"