Use the following command, replacing the path with your actual file location: powershell
Your PowerShell execution policy must allow script execution (e.g., Set-ExecutionPolicy RemoteSigned ).
# Run PowerShell as Administrator, then: Add-AppxProvisionedPackage -Online -PackagePath "C:\path\to\your.msix" -SkipLicense
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
To help refine this script or process for your environment, let me know:
)
Registers the application strictly within the user profile of the account running the command. Other users on the same machine will not see or have access to the app. Use the following command, replacing the path with
Provisioning guarantees that new users get the app upon login. To force the app to register immediately for all currently logged-in profiles without waiting for a re-login, execute this command: powershell Get-AppxPackage -AllUsers -Name "*YourAppName*" Use code with caution. How to Remove a Provisioned MSIX Package
To successfully run an all-users MSIX installation via PowerShell, you must meet the following criteria:
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. Other users on the same machine will not
Add-AppxProvisionedPackage -Online -PackagePath "C:\Deployment\YourApp.msix" -SkipLicense Use code with caution. Parameter Breakdown:
After running the command, verify that the application has been successfully staged for all users. Method 1: List All Provisioned Packages
: Removing a provisioned package requires Remove-AppxProvisionedPackage . Simply using "Uninstall" from the Start menu only removes it for that specific user.
On this website, only cookies that are technically necessary for its operation are used.
For more information, please refer to our Cookie Statement.