Use this sequence to isolate whether the problem is provisioning-only, user-registration, or image state.
- Confirm what is actually provisioned
- List provisioned packages:
Get-AppxProvisionedPackage -Online | Format-Table DisplayName, PackageName - If the package is present there, it is provisioned in the image.
-
Remove-AppxProvisionedPackageremoves the package from the Windows image so it is not installed for new user accounts. It does not remove the app from existing user accounts.
- List provisioned packages:
- Check whether the app is already registered for users
- List installed packages for all users:
Get-AppxPackage <Application Name> -AllUsers - This matters because
/Remove-ProvisionedAppxPackageonly removes provisioning if the package is registered to any user profile. To fully remove it from the image, remove the app for each user where it is already registered. - To remove the app for all existing users:
Get-AppxPackage <Application Name> -AllUsers | Remove-AppxPackage -AllUsers
- List installed packages for all users:
- Retry removal of the provisioned package
- PowerShell:
Remove-AppxProvisionedPackage -Online -PackageName <PackageName> - DISM command-line equivalent:
DISM.exe /Online /Remove-ProvisionedAppxPackage /PackageName:<PackageName> - Expected result: the package no longer appears in
Get-AppxProvisionedPackage -Online, and it will not be installed for new user accounts.
- PowerShell:
- Distinguish online vs offline behavior
- Online removal affects provisioning for new users only. Existing users keep the app unless it is separately removed with
Remove-AppxPackage. - Offline removal against a mounted image uses:
Remove-AppxProvisionedPackage -Path <MountedImagePath> -PackageName <PackageName> - If working with an offline image, verify the package name against that mounted image before removal.
- Online removal affects provisioning for new users only. Existing users keep the app unless it is separately removed with
- Check whether the package is safe to remove
- Some apps can be removed, but protected system components should not be forced off the device because that can destabilize Windows.
- If removal attempts return errors such as protected-component behavior, leave the app in place.
- Investigate update and reprovisioning behavior
- On Windows 10 version 1703 or 1709, previously removed first-party provisioned apps can return after a feature update if the device was offline when the apps were deprovisioned.
- This issue is fixed in Windows 10 version 1803. For Windows 10 version 1709, applying the latest security update fixes the registry-key creation issue.
- This behavior applies to first-party apps that shipped with Windows 10, not third-party apps, Microsoft Store apps, or LOB apps.
- If the app was removed while Windows was online, the signed-in user can still retain the app even though new users do not receive it.
- If the package still fails to remove, determine whether the issue is user-profile state
- A common failure condition is: package installed for a user but not provisioned for all users.
- In image-capture scenarios, the documented resolution is to remove the package for the current user:
Remove-AppxPackage -Package <package name> - If multiple user profiles contain older or lingering versions, identify them with:
Get-AppxPackage <Application Name> -AllUsers
- What can be concluded from the supported behavior
- If the package is provisioned,
Remove-AppxProvisionedPackageonly stops installation for new users. - If the package is still installed for existing users, remove it separately with
Remove-AppxPackage. - If the package is protected, it should not be forcibly removed.
- If removed apps return after a feature update, check whether the device was offline during deprovisioning and whether the OS version is affected by the known Windows 10 1703/1709 issue.
- If the package is provisioned,
The provided material does not include specific DISM log paths, AppX deployment log locations, or a dependency-analysis procedure beyond checking whether the package is provisioned and whether it is registered for users.