Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*YourAppName*" Use code with caution. Copied to clipboard Check Status for All Users

To install for all users (current and future users), you must use the or strictly specify the package path.

# 3. Add the package # -AllUsers: Provisions the package for all users (requires Admin). # -ForceApplicationShutdown: Closes the app if it is currently running to allow update/install. Add-AppxPackage -Path $MsixPath -AllUsers -ForceApplicationShutdown -ErrorAction Stop