Loading...
All-users installation requires elevated rights. You must run PowerShell . Without elevation, the command will fail with an access denied error.
When you use Add-AppxProvisionedPackage , the package is for the machine. The actual installation for each user happens during their first logon after provisioning. This is why you might not see the app in the Start Menu immediately for currently logged-in users until they sign out and back in.
Once executed, the app is staged system-wide. Every user who signs in will find the application available in their Start Menu. Method 2: Installing for All Current Users via AppxPackage install msix powershell all users
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.
Run the following command to see if your application appears in the system-wide staging list: powershell All-users installation requires elevated rights
The MSIX file must be suitable for all-user deployment (often signed by a trusted certificate).
Remove-AppxProvisionedPackage -Online -PackageName "YourAppPublisher.YourApp_1.0.0.0_x64__8wekyb3d8bbwe" When you use Add-AppxProvisionedPackage , the package is
要想在计算机系统上对所有用户进行 MSIX 应用包的预配,统一且官方的方案就是使用 这一 PowerShell 命令。这一过程必须在一个 以管理员身份运行 的 PowerShell 窗口中进行。
:使用以下核心语法将 MSIX 包预配给所有用户,其中 -SkipLicense 参数可避免因许可证问题导致的安装失败。命令如下:
You must run PowerShell as an Administrator .