MSIX PowerShell Cmdlets

Written by Alex Marin · May 7th, 2019

MSIX uses the same PowerShell cmdlets available for AppX packages. Let’s go through some of them with a few examples

To install an MSIX from Powershell run the command:

Add-AppxPackage -path "C:\Caphyon\MyApp.msix"

The same command works for MSIX bundles as well

Add-AppxPackage -path “C:\Caphyon\MyBundle.msixbundle”

To remove an MSIX from powershell you can use

Remove-AppxPackage -Package "Caphyon.MyApp_1.0.0.0_neutral__8wekyb3d8bbwe"

The removable package name is composed like Vendor.AppName_Version_Build_Hash, where Build can be neutral or X64. To remove the MSIX from all users you can use

Remove-AppxPackage -Package "Caphyon.MyApp_1.0.0.0_neutral__8wekyb3d8bbwe" -AllUsers . 

ImportantTo remove it from all users you need to run the command as an administrator.

If you want to find additional information about a package, you can use

Get-AppxPackage -name “Caphyon.MyApp”

This returns multiple fields, like for example, the PackageFullName.You can use this to run the uninstall command mentioned above. If you want to find out all the MSIX/Appx packages installed you can use Get-AppxPackage, or you can use Get-AppxPackage -User “Domain\Username” to get all the packages installed for a specific user.

By default, all the MSIX/Appx packages are installed in %ProgramFiles%\WindowsApps, but you can change that in a few simple steps. First, if you need, you can add a new Appx volume with Add-AppxVolume -Path "E:\WindowsApps"

ImportantIt’s necessary to specify \WindowsApps after the volume you choose.

After you added the new Volume you can set it as default using Set-AppxDefaultVolume -Volume E:\.Now all your MSIX/Appx packages are installed by default in E:\WindowsApps.

With the new volumes in place you can move installed MSIX packages by using

Move-AppxPackage -Package "Caphyon.MyApp_1.0.0.0_neutral__8wekyb3d8bbwe" -Volume E:\

To dismount a volume you can use Dismount-AppxVolume -Volume E:\

To remove a volume use Remove-AppxVolume -Volume E:\

ImportantIf you dismount a volume you cannot use the installed applications on that location

ImportantYou cannot remove a volume if any user has applications left on that location. You must first move/remove them.

For more cmdlets visit