I know this is a known error, below is what I am getting, what I have done is:
I did the steps in the link below and it did not work:
Restore the miracastview folder to C:\Windows location and that did not resolve the issue.
Removed the miracastview information from the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\
location and that did not resolve the problem.
I ran the DISM command to clean the image and that did not resolve the problem.
One option is to modify the generalize.xml file, if I do how do I properly remove the following segments from the generalize.xml file?
-<imaging exclude="">
<assemblyIdentity versionScope="NonSxS" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" version="10.0.16299.15" name="Microsoft-Windows-AppX-Sysprep"/>
<sysprepOrder order="0x1A00"/>
<sysprepValidate moduleName="$(runtime.system32)\AppxSysprep.dll" methodName="SysprepGeneralizeValidate"/>
<sysprepModule moduleName="$(runtime.system32)\AppxSysprep.dll" methodName="SysprepGeneralize"/>
</imaging>
PackageFullName : Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy
PackageUserInformation : {S-1-5-21-3429325520-2175502158-1847730730-1001
[S-1-5-21-3429325520-2175502158-1847730730-1001]: Installed}
Package Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2018-01-17 07:54:11, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2018-01-17 07:54:11, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2018-01-17 07:54:11, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2018-01-17 07:54:11, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2018-01-17 07:54:11, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2018-01-17 07:54:11, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2018-01-17 07:54:11, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
SYSPRP Package Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2018-01-17 08:23:42, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2018-01-17 08:23:42, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2018-01-17 08:23:42, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2018-01-17 08:23:42, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2018-01-17 08:23:42, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2018-01-17 08:23:42, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2018-01-17 08:23:42, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
I went to the sysprep folder and took ownership of the generalize.xml file. I then gave myself modify permissions and edited the appx information out of the file now sysprep is running.