title: Sysprep failure on windows.miracastview
body: <p>When trying to sysprep and windows 10 (1709) build I get the following error:</p>
  
  <pre><code>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.
  </code></pre>
  
  <p>I tried using powershell to remove it but the error message says it is part of windows and cannot be removed.</p>
  
  <p>I checked the user accounts and I only have one user account (other accounts are built-in windows accounts).</p>
  
  <p>How can I get sysprep to work?</p>
  
  <p><strong>After further investigation I found that miracast view is the only app where Get-AppxPackage -allusers has the pending status:</strong></p>
  
  <p>Name                   : Windows.MiracastView</p>
  
  <p>Publisher              : CN=Microsoft Windows, O=Microsoft Corporation, 
  L=Redmond, S=Washington, C=US</p>
  
  <p>Architecture           : Neutral</p>
  
  <p>ResourceId             : neutral</p>
  
  <p>Version                : 6.3.0.0</p>
  
  <p>PackageFullName       :Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy</p>
  
  <p>InstallLocation        : </p>
  
  <p>IsFramework            : False</p>
  
  <p>PackageFamilyName      : Windows.MiracastView_cw5n1h2txyewy</p>
  
  <p>PublisherId            : cw5n1h2txyewy</p>
  
  <p>PackageUserInformation : {S-1-5-21-4120236872-3763413694-1479318824-1000 
  [Operator]: <strong>Installed(pending removal)</strong>}</p>
  
  <p>IsResourcePackage      : False</p>
  
  <p>IsBundle               : False</p>
  
  <p>IsDevelopmentMode      : False</p>
  
  <p>IsPartiallyStaged      : False</p>
  
  <p>SignatureKind          : System</p>
  
  <p>Status                 : Ok</p>