This guide focuses on installing MSIX packages (.msix or .appx files) for "All Users" using PowerShell.
The system must allow script execution.
Once confirmed, you can deploy the package once and have it ready for the entire organization.
To install an MSIX package for all users on a Windows machine using PowerShell, you need to run the command with administrative privileges and use the appropriate Add-AppxProvisionedPackage cmdlet (for Windows images) or Add-AppxPackage with the -AllUsers parameter (for newer Windows 10/11 versions).
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()) if (-not $currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) Write-Host "ERROR: This script must be run as Administrator." -ForegroundColor Red exit 1001