MiracastView package cause sysprep error after you upgrade a computer to Windows 10 Version 1709

Applies to: Windows 10, version 1709

Symptoms


Consider the following scenario:

  • On a Windows 10 Version 1703 based computer, MiracastView is a built-in app and is installed by default.
  • You upgrade the computer to Windows 10 Version 1709.
  • You open a Command Prompt window with administrator permission and run the following command:
    cd %windir%\System32\Sysprepsysprep.exe /generalize /oobe /reboot

In this scenario, the sysprep command fails. You receive an error message that resembles the following:

sysprep error

Additionally, the Setupact LOG contains error messages that resemble the following:

When you use the Remove-AppxPackage PowerShell command to remove MiracastView, the command does not work, and you receive the following error message:

Error message

Cause


This issue occurs due to a bug in the way setup migrated the Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy package during the upgrade. This package will not function properly in the generalized image.

Workaround


To work around this issue, use either of the following methods.

Method 1

On the Windows 10 Version 1709 computer, copy Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy.xml from C:\Windows.old\ProgramData\Microsoft\Windows\AppRepository\ to C:\ProgramData\Microsoft\Windows\AppRepository.

Method 2

Copy the C:\Windows\MiracastView folder from a Windows 10 Version 1703 computer to the Windows 10 Version 1709 computer. Then, restart the computer to let Windows finish uninstalling MiracastView.