Use the following command structure. Replace the placeholder path with your actual file location: powershell Add-AppxProvisionedPackage -Online -PackagePath "C:\Path\To\YourApp.msix" -SkipLicense Use code with caution. Copied to clipboard
This cmdlet stages the package on the machine, making it available to any new or existing user who logs in (though existing users may require a logoff/logon cycle). install msix powershell all users
Specifies that the action should be taken on the operating system currently running on the local machine. Use the following command structure
Add-AppxProvisionedPackage -Online -PackagePath "C:\Path\To\YourApp.msix" -DependencyPackagePath "C:\Path\To\Dependency1.msix", "C:\Path\To\Dependency2.msix" -SkipLicense Use code with caution. install msix powershell all users
To install a package named MyApp.msix located in the C:\Temp folder, you would use the following PowerShell command: