When I try to build sysprep and windows 10 (1709), 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 that it is part of windows and cannot be removed.
I checked user accounts and I only have one user account (other accounts are built-in Windows accounts).
How can I make sysprep work?
After further research, I found that miracast view is the only application in which Get-AppxPackage -allusers has a 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
: {S-1-5-21-4120236872-3763413694-1479318824-1000
[]: ( )}
IsResourcePackage: False
IsBundle: False
IsDevelopmentMode: False
IsPartiallyStaged: False
SignatureKind: System
: Ok