install msix powershell all users

Install Msix Powershell All Users May 2026

Short guide: Install an MSIX package for all users via PowerShell

Sample All-in-One Script

Save this as Install-CompanyApp.ps1:

# Run this script as Administrator

$msixPath = "C:\Deployment\MyApp.msix" $certPath = "C:\Deployment\MyCert.cer" install msix powershell all users

Prerequisites

Before you run the commands, ensure you have: Short guide: Install an MSIX package for all

  1. Administrator Access: You must run PowerShell as an administrator.
  2. The MSIX File: Know the full path to your .msix or .msixbundle file.
  3. Certificate Trust: If the MSIX is self-signed or from an untrusted source, you must install the signing certificate into the Local Machine Trusted People store first.

Example: End-to-end script (provision and install for current machine)

Run as Administrator:

$msix = "C:\deploy\YourApp.msix"
# Trust certificate if provided
# Import-Certificate -FilePath "C:\deploy\signing.cer" -CertStoreLocation Cert:\LocalMachine\TrustedPeople
# Provision for new users
Add-AppxProvisionedPackage -Online -PackagePath $msix -SkipLicense
# Install for current user (administrator session)
Add-AppxPackage -Path $msix -ForceApplicationShutdown

Security considerations

  • Only install MSIX packages from trusted sources.
  • Ensure certificates used to sign packages are trusted by the machine; do not add untrusted certificates to system stores without validating the source.

Step 2: Add the MSIX Module (If Needed)

The primary cmdlets for MSIX are Add-AppxPackage and Add-AppProvisionedPackage. The Appx module is usually loaded by default, but you can force it: Administrator Access: You must run PowerShell as an

Import-Module Appx