Get-AppxPackage -Name "MyCompany.MyApp" | Remove-AppxPackage For machine-wide installations (requires admin):
Add-AppxPackage -Path "C:\Downloads\MyApp.msix" -ForceApplicationShutdown If you receive an error like "The root certificate of the signature is not trusted" , you must install the signing certificate before installing the MSIX. install msix powershell
Add-AppxPackage -Path "C:\Downloads\MyApp.msix" -AllUsers Machine-wide installation requires a trusted, signed MSIX package. The certificate must be installed in the Local Machine’s trusted store beforehand. Silent Installation (No UI) MSIX installs silently by default when using Add-AppxPackage . However, you can suppress any PowerShell output or errors: Get-AppxPackage -Name "MyCompany
$Dependencies = @( "C:\Dependencies\Microsoft.VCLibs.x64.14.00.msix", "C:\Dependencies\Microsoft.UI.Xaml.2.7.msix" ) Add-AppxPackage -Path "C:\Downloads\MyApp.msix" -DependencyPath $Dependencies For .msixbundle files (which contain multiple architectures and variants), use the same -Path parameter: Silent Installation (No UI) MSIX installs silently by
By mastering these commands, you can integrate MSIX deployment into CI/CD pipelines, remote management tools, and automated configuration scripts—making application lifecycle management simpler and more reliable. Last updated: March 2025. For the latest cmdlet parameters, run Get-Help Add-AppxPackage -Detailed in your PowerShell environment.
Get-AppxPackage -Name "MyCompany.MyApp" | Select-Object * Removal is straightforward:
$CertPath = "C:\Certs\MyCompany.cer" $Cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($CertPath) $Store = New-Object System.Security.Cryptography.X509Certificates.X509Store( "Root", "LocalMachine" ) $Store.Open("ReadWrite") $Store.Add($Cert) $Store.Close() Add-AppxPackage -Path "C:\Downloads\MyApp.msix" -AllUsers Security Warning: Only trust certificates from legitimate sources. Installing from a URL (Download + Install) You can download and install an MSIX in a single script without saving the file permanently: