When trying to sysprep and windows 10 (1709) build I get the following error:
Package Windows.MiracastView_6.3.0.0_neutral_cw5n1h2txyewy was installed for a
user but not provisioned for all users. This package will not function
properly in the sysprep image.
I tried using powershell to remove it but the error message says it is part of windows and cannot be removed.
I checked the user accounts and I only have one user account (other accounts are built-in windows accounts).
How can I get sysprep to work?
After further investigation I found that miracast view is the only app where Get-AppxPackage -allusers has the pending status:
Name : Windows.MiracastView
Publisher : CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : Neutral
ResourceId : neutral
Version : 6.3.0.0
PackageFullName :Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy
InstallLocation :
IsFramework : False
PackageFamilyName : Windows.MiracastView_cw5n1h2txyewy
PublisherId : cw5n1h2txyewy
PackageUserInformation : {S-1-5-21-4120236872-3763413694-1479318824-1000 [Operator]: Installed(pending removal)}
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
IsPartiallyStaged : False
SignatureKind : System
Status : Ok