Hi, @li dong
Thank you for posting in Microsoft Q&A forum.
To install an appxbundle for all local users on a Windows 11 system, you can use the Add-AppxPackage PowerShell command instead of Add-AppxProvisionedPackage. The Add-AppxProvisionedPackage command installs the package for new users only, while the Add-AppxPackage command installs the package for all users on the system. Here's an example command:
Add-AppxPackage -Path "D:\asd\AppX\DMSCloudClientPackage_1.0.0.0_x86.msixbundle"
To uninstall the package, you can use the Remove-AppxPackage command:
Remove-AppxPackage -Package "9111c31f-e85d-4176-a0d8-efcee95dca17_1.0.0.0_x86__xs0e7hfrdh760"
Note that you need to specify the package name in the Remove-AppxPackage command, not the provisioned package object. Also, make sure to use the correct package name and architecture for your appxbundle.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".