Use Method 2 ( Add-AppxProvisionedPackage ) for enterprise "All Users" deployments. It is the most robust way to ensure the software persists for new users logging onto the machine.
Let's break down the parameters:
.DESCRIPTION This script attempts to install an MSIX package using the -AllUsers parameter to provision the application system-wide. install msix powershell all users
$tempFolder = Join-Path $env:TEMP "MSIXInstall" New-Item -ItemType Directory -Force -Path $tempFolder | Out-Null
Add-AppxProvisionedPackage -Online -PackagePath "C:\Path\To\YourApp.msix" -SkipLicense Use code with caution. Copied to clipboard Use Method 2 ( Add-AppxProvisionedPackage ) for enterprise
: Applies the action to the local running Windows instance.
The -AllUsers switch inside the Add-AppxPackage cmdlet instructs Windows to register the app into the app repository database for every user profile currently existing on the machine. Verifying the Installation Verifying the Installation This is the best method
This is the best method for IT Administrators. It uses the Add-AppxProvisionedPackage cmdlet. This installs the app to the system image, making it available to who logs into the computer.
DISM /Online /Add-ProvisionedAppxPackage /PackagePath:"C:\Path\To\YourApp.msix" /SkipLicense Use code with caution. Copied to clipboard 3. Handling Unsigned Packages