petben Posted June 10, 2025 Posted June 10, 2025 Hello, I want to install a Windows App using GPO or Powershell. I have a working command e.g. DISM.EXE /Online /Add-ProvisionedAppxPackage /PackagePath:"\\server\MSI\Windows Store Apps\Whiteboard\Microsoft.Whiteboard_55.20331.573.0_neutral_~_8wekyb3d8bbwe.appxbundle" /SkipLicense this works fine for NEW users, but staff with existing profiles do not get the install. Has anyone got a good method to install Windows Store App for all users including existing?
DavR Posted June 11, 2025 Posted June 11, 2025 Adding new UWP apps for all users isn't the easiest. Yes, in theory the DISM command provisions the package, but as you've found out, newly provisioned packages don't get added to existing profiles. Currently we don't have any apps that need this, but, my solution when we did was a PowerShell login script that registers the apps into existing profiles. It looked to see if the apps was present in the profile, then added it if not.
petben Posted June 11, 2025 Author Posted June 11, 2025 thanks, can you please post a sample of your powershell?
DavR Posted June 11, 2025 Posted June 11, 2025 Sure.... The Add-AppxPackage line is the key thing, the others are just detect version/presence, and do not install if exists and is at or above required version. $currentVersion = (Get-AppxPackage -Name Microsoft.XboxApp).Version If ($currentVersion -gt 48) {exit} Add-AppxPackage -DisableDevelopmentMode -Register "C:\Program Files\WindowsApps\Microsoft.XboxApp_48.49.31001.0_x64__8wekyb3d8bbwe\AppxManifest.xml"
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now