MiracastView Error After Upgrade on Windows 10

Windows 10 came with lots of interesting and amazing features and also some bugs along with it! Recently, many users have reported the errors they have received associated with MiracastView after installing a large update on Windows 10. The users reported that the error occurs right after the user installs the Fall Creators Update.

Many users reported that the bugs occur when they try to run a Sysprep command. It seems that the bug is caused due to a bad upgrade process which in turn migrates to Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy. Due to this issue, the MiracastView package will not function properly once the Windows upgrade is complete.

After cross-checking and verifying with many users we found that this issue might happen when the user tries to upgrade to Windows 10 version 1709 from Windows 10 version 1703. Although the upgrade will complete successfully, any Sysprep command will fail unless repair strategies are applied.

How to Fix MiracastView Error on Windows 10

If you are going through such a problem, below are some methods that are provided for you. Users have tried using these methods to fix the bug.

Method 1: Copying the old MiraastView folder into the current Windows directory

You can easily remove the error by your backup folder. You can solve the error even if you forgot to keep a backup. Just simply follow the copy and paste method then you are good to go.

Step 1: If you have stored your backup then you can copy the old build C:\ Windows \ MiracastView folder.

Step 2: Paste it into your current C:\ Windows directory.

Step 3:Lastly, restart your computer. This technique will help the background AppReadiness process to delete the package files that were badly migrated.

If in case you haven’t kept a back up then don’t worry, you can get the copy of old build C:\Windows \ MiracastView folder from any other computer which has MIracastView as a built-in app installed by default. Copy the complete old folder on a Pendrive then paste it into the current Windows directory.

Method 2: Copying the w5n1h2txyewy.xml file from Windows.old to AppRepository

It is possible to fix the issue by copying the clean version of Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy.xml from the Windows.old folder. It has a feature of saving the deleted old folder for 30 days with the .old extension.

Most of the users have managed to resolve the issue by copying the old Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy.xml to C:\ProgramData\Microsoft\Windows\AppRepository. Below are steps on how to perform it.

Step 1: Go to File Explorer and search for C:\Windows.old \ ProgramData \ Microsoft \ Windows \ AppRepository\. When you reached over there copy the Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy.xml file to your clipboard

Step 2: Now, search for C:\ ProgramData \ Microsoft \ Windows \ AppRepository and paste the Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy.xml file here.

When you are done pasting the file, reboot your computer and check whether the MiracastView related errors have been fixed at the next startup.

Method 3: Removing a leftover registry key that is causing the error

Step 1: To open up the Run box, press Windows + R. Type “Regedit” and hit Enter. Registry Editor will be open.

Step 2: Navigate from the left panel for the following:

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Appx \ AppxAllUserStore \ EndOfLife \

Step 3: Check each SID and find the  Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy key. 

If you find it in any subkeys of EndOFLife, right-click on it and Delete it.

Step 4: Once you have deleted the subkey, close the Registry Editor and restart your computer. The issue should be solved till now and Sysprep or other commands should work.

 Method 4: Removing the MiracastView package via Psexec and DB Browser

Step 1: Go to this link (here), download pstools.zip to your computer, and extract the PSTools archive (along with psexec) to C:\ Program Files. 

Step 2: Now, click on this link (here) and download the portable version of DB Browser for SQLite.

Step 3: Once you finished downloading both the tools, press Windows key + R to open a Run box. Then, type “cmd” and press Ctrl + Shift + Enter and click Yes at the UAC prompt to open up an Elevated Command Prompt.

Step 4: With the help of the following command navigate to the location of PsTools 

cd C:\Program Files\PsTools

Step 5: Now, run the psexec tool as admin using the following command.

cd C:\Program Files\PsTools

Step 6: Press Agree to PsExec’s License Agreement and you should shortly see another Elevated Command Prompt window opening.

Step 7: Go the location where you copied the DB Browser with the help of command prompt and open SQLiteDatabaseBrowserPortable.exe. The default command location should be like

C:\Program Files\DB Browser for SQLite\DB Browser for SQLite.exe

Step 8: Then, In DB Browser for SQLite, click the Open Database button at the top of the window and use the next window to navigate to the following database file:

C:\ ProgramData \ Microsoft \ Windows \ AppRepository \ StateRepository-Machine.srd

Step 9: When the DB Browser is opened, go and click on Browser data and change the active table to Package.

Step 10: From the view selected, inspect the PackageFullName column for an entry named Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy. When you find it, change the ISInbox value associated with it from 1 to 0 and then press Ctrl + S to save the changes.

Step 11: Now, press Windows key + R to open up another Run box. After that, type “PowerShell” and hit Ctrl + Shift + Enter to open up a Powershell window as admin.

Step 12: Type the following command in elevated Powershell and hit enter to remove the MiracastView application:

get-appxpackage -allusers | where {$_.name -like “*mira*”} | remove-appxpackage

Step 13: Lastly, go back to elevated Command Prompt window and run the following two commands and press Enter after each one:

REG DELETE “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deleted\EndOfLife\S-1-5-21- XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-100X” /f

REG DELETE “HKLM\SYSTEM\Setup\Upgrade\Appx\AppxAllUserStore\EndOfLife\S-1-5-21-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-100X” /f

Restart your computer now, and the issue will be solved.

Conclusion

The methods will surely help to fix the MiracastView issue. Go through the methods carefully and fix them wisely.