Run it:

try Write-Host "Silently installing $PackagePath ..." Add-AppxPackage -Path $PackagePath -ForceApplicationShutdown -ErrorAction Stop Write-Host "Installation succeeded." -ForegroundColor Green

If you’re deploying via , just upload the MSIX and set Install behavior to System – Intune handles the silent install automatically.

Published by: SysAdmin Tips Read time: 4 minutes

For scripts, remember: Add-AppxPackage → current user Add-AppxProvisionedPackage → all users (needs reboot on new user login) Have a tricky MSIX deployment? Drop the error in the comments.