Install Msix Powershell All Users — No Login
[switch]$SkipCertificateCheck ) if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) Write-Error "This script must be run as Administrator." exit 1 File existence check if (-not (Test-Path $MsixPath)) Write-Error "MSIX file not found at $MsixPath" exit 1 Optional: Install machine-wide certificate if ($CertificatePath -and (Test-Path $CertificatePath)) Write-Host "Installing certificate to Local Machine Trusted Root..." $cert = Import-Certificate -FilePath $CertificatePath -CertStoreLocation Cert:\LocalMachine\Root Write-Host "Certificate installed: $($cert.Thumbprint)" Perform the all-users installation try Write-Host "Installing $MsixPath for ALL users..." Add-AppxProvisionedPackage -Online -FolderPath $MsixPath -SkipLicense -ErrorAction Stop Write-Host "Installation successful. The app is provisioned for all users."
Get-AppxProvisionedPackage -Online | Select-Object DisplayName, PackageName, Version Then test on a new local user account. If you prefer command prompt or batch scripts, you can use the DISM tool directly:
To check support, run:
dism /Online /Add-ProvisionedAppxPackage /PackagePath:"C:\App.msix" /SkipLicense Cause: You previously installed the same package for the current user via double-click.
Now go ahead—launch PowerShell as Admin, point to your MSIX file, and provision that app for everyone. install msix powershell all users
| | Scope | When does the app appear? | | --- | --- | --- | | Add-AppxPackage | Current user only | Immediately for that user | | Add-AppxProvisionedPackage | All users (machine) | After reboot or new user login |
<# .SYNOPSIS Installs an MSIX package for all users on a Windows machine. .DESCRIPTION Uses Add-AppxProvisionedPackage to machine-wide install an MSIX. .NOTES Must be run as Administrator. #> param( [Parameter(Mandatory=$true)] [string]$MsixPath, [switch]$SkipCertificateCheck ) if (-NOT ([Security
First remove the user-scoped installation: