在网上找了很久才找到解决办法,备忘。
报错日志:
2022-01-05 14:36:07, Error [0x0808ff] MIG COutOfProcPluginFactory::CreateInstance: m_currentHostSurrogate->LoadDllServer(C:\$WINDOWS.~BT\Sources\ReplacementManifests\Microsoft-Windows-RasServer-MigPlugin\RasMigPlugin.dll, {D26AA4A5-92AD-48DB-8D59-95EF0DCE6939}, 1) failed, hr=[0x8007007f].
2022-01-05 14:36:07, Error [0x080387] MIG Failure while calling IDiscovery->Discover for Plugin={ServerPath="Microsoft-Windows-RasServer-MigPlugin\RasMigPlugin.dll", CLSID={D26AA4A5-92AD-48DB-8D59-95EF0DCE6939}, ThreadingModel=Apartment, ExceptionHandling=Default}. Error: 0x8007007F
2022-01-05 14:36:13, Error SP Failure while getting the known folder path for CSIDL_PRINTHOOD (S-1-5-21-575955073-88082790-2918479007-1001): Win32Exception: 系统找不到指定的文件。 [0x00000002] class UnBCL::String *__cdecl Mig::CFacadeUser::GetKnownFolderLocation(class UnBCL::String *,int *,class UnBCL::String **)
2022-01-05 14:36:14, Error SP pSPRemoveUpgradeRegTree: failed to delete reg tree HKLM\SYSTEM\Setup\Upgrade[gle=0x00000005]
2022-01-05 14:36:26, Error [0x080831] MIG CSIAgent: Invalid xml format: FormatException: "script" attribute is mandatory. class Mig::CMXEMerge *__cdecl Mig::CMXEMigrationXml::LoadMerge(class UnBCL::XmlNode *,int,class Mig::CMXEMigrationXml *,class Mig::CMXEXmlComponent *)
2022-01-05 14:36:28, Error [0x080387] MIG Failure while calling IDiscovery->Discover for Plugin={ServerPath="Microsoft-Windows-AppX-Deployment-Server\AppxUpgradeMigrationPlugin.dll", CLSID={AE27C1A6-25F2-45FD-9A28-081B81F29E0A}, ThreadingModel=Apartment, ExceptionHandling=Default}. Error: 0x80070002
2022-01-05 14:36:28, Error [0x08085f] MIG MigHost: CMigPluginSurrogate::LoadAndRegisterServerInThreadContext: LoadLibraryExW(C:\$WINDOWS.~BT\Sources\ReplacementManifests\Microsoft-Windows-AppManagement-Migration\AppManMigrationPlugin.dll, LOAD_WITH_ALTERED_SEARCH_PATH) failed gle=0x7f.[gle=0x0000007f]
2022-01-05 14:36:28, Error [0x080863] MIG MigHost: CMigPluginSurrogate::COMGenericThreadingHostThreadProc: LoadAndRegisterServerInThreadContext() failed hr=0x8007007f.[gle=0x0000007f]
2022-01-05 14:36:28, Error [0x0808ff] MIG COutOfProcPluginFactory::CreateInstance: m_currentHostSurrogate->LoadDllServer(C:\$WINDOWS.~BT\Sources\ReplacementManifests\Microsoft-Windows-AppManagement-Migration\AppManMigrationPlugin.dll, {2AF7D9A3-FA1C-410A-B6D3-C6AD32232531}, 1) failed, hr=[0x8007007f].
2022-01-05 14:36:28, Error [0x080387] MIG Failure while calling IDiscovery->Discover for Plugin={ServerPath="Microsoft-Windows-AppManagement-Migration\AppManMigrationPlugin.dll", CLSID={2AF7D9A3-FA1C-410A-B6D3-C6AD32232531}, ThreadingModel=Apartment, ExceptionHandling=Default}. Error: 0x8007007F
2022-01-05 14:36:30, Error [0x08085f] MIG MigHost: CMigPluginSurrogate::LoadAndRegisterServerInThreadContext: LoadLibraryExW(C:\$WINDOWS.~BT\Sources\ReplacementManifests\Microsoft-Windows-AppManagement-Migration\AppManMigrationPlugin.dll, LOAD_WITH_ALTERED_SEARCH_PATH) failed gle=0x7f.[gle=0x0000007f]
2022-01-05 14:36:30, Error [0x080863] MIG MigHost: CMigPluginSurrogate::COMGenericThreadingHostThreadProc: LoadAndRegisterServerInThreadContext() failed hr=0x8007007f.[gle=0x0000007f]
2022-01-05 14:36:30, Error [0x0808ff] MIG COutOfProcPluginFactory::CreateInstance: m_currentHostSurrogate->LoadDllServer(C:\$WINDOWS.~BT\Sources\ReplacementManifests\Microsoft-Windows-AppManagement-Migration\AppManMigrationPlugin.dll, {2AF7D9A3-FA1C-410A-B6D3-C6AD32232531}, 1) failed, hr=[0x8007007f].
2022-01-05 14:36:31, Error [0x08085f] MIG MigHost: CMigPluginSurrogate::LoadAndRegisterServerInThreadContext: LoadLibraryExW(C:\$WINDOWS.~BT\Sources\ReplacementManifests\Microsoft-Windows-AppManagement-Migration\AppManMigrationPlugin.dll, LOAD_WITH_ALTERED_SEARCH_PATH) failed gle=0x7f.[gle=0x0000007f]
2022-01-05 14:36:31, Error [0x080863] MIG MigHost: CMigPluginSurrogate::COMGenericThreadingHostThreadProc: LoadAndRegisterServerInThreadContext() failed hr=0x8007007f.[gle=0x0000007f]
2022-01-05 14:36:31, Error [0x0808ff] MIG COutOfProcPluginFactory::CreateInstance: m_currentHostSurrogate->LoadDllServer(C:\$WINDOWS.~BT\Sources\ReplacementManifests\Microsoft-Windows-AppManagement-Migration\AppManMigrationPlugin.dll, {2AF7D9A3-FA1C-410A-B6D3-C6AD32232531}, 1) failed, hr=[0x8007007f].
2022-01-05 14:36:37, Error [0x080389] MIG Plugin Plugin={ServerPath="Microsoft-Windows-AppX-Deployment-Server\AppxUpgradeMigrationPlugin.dll", CLSID={AE27C1A6-25F2-45FD-9A28-081B81F29E0A}, ThreadingModel=Apartment, ExceptionHandling=Default} failed Discover and it is critical, cannot execute IDiscovery->Gather.[gle=0x00000057]
2022-01-05 14:36:37, Error MIG Error 0x000010E0 while executing critical action Action,CMXEPlugin,C:\$WINDOWS.~BT\Sources\ReplacementManifests,Microsoft-Windows-AppX-Deployment-Server\AppxUpgradeMigrationPlugin.dll,{AE27C1A6-25F2-45FD-9A28-081B81F29E0A},Apartment,Default. Migration will abort[gle=0x000000cb]
2022-01-05 14:36:37, Error Gather failed. Last error: 0x00000000
2022-01-05 14:36:37, Error SP pSPDoMainGather: Gather operation failed. Error: 0x0000002C
2022-01-05 14:36:37, Error SP CGatherData: Migration phase failed. Status: 44
2022-01-05 14:36:37, Error SP Operation failed: Gather data, scope: EVERYTHING. Error: 0x8007042B[gle=0x000000b7]
2022-01-05 14:36:37, Error SP COperationQueue::Sort: Could not find an execution phase for 55
2022-01-05 14:36:37, Error SP ExecuteOperations: Operations cannot be sorted. This is a fatal failure.
2022-01-05 14:36:37, Error SP ExecuteOperations: Main operation execution failed. Error: 0x8007000D
2022-01-05 14:36:37, Error SP ExecuteOperations: Failed execution phase Finalize. Error: 0x8007000D
2022-01-05 14:36:37, Error MOUPG MoSetupPlatform: Finalize reported failure![gle=0x8007000d]
2022-01-05 14:36:37, Error MOUPG CDlpActionFinalize::ExecuteSetupPlatformFinalize(1192): Result = 0xC1900101[gle=0x8007000d]
2022-01-05 14:36:37, Error MOUPG CDlpActionFinalize::ExecuteRoutine(514): Result = 0xC1900101[gle=0x8007000d]
2022-01-05 14:36:38, Error MOUPG CDlpActionImpl<class CDlpErrorImpl<class CDlpObjectInternalImpl<class CUnknownImpl<class IMoSetupDlpAction> > > >::Execute(493): Result = 0xC1900101
2022-01-05 14:36:38, Error MOUPG CDlpTask::ExecuteAction(3300): Result = 0xC1900101
2022-01-05 14:36:38, Error MOUPG CDlpTask::ExecuteActions(3454): Result = 0xC1900101
2022-01-05 14:36:38, Error MOUPG CDlpTask::Execute(1631): Result = 0xC1900101
2022-01-05 14:36:38, Error MOUPG CSetupManager::ExecuteTask(2942): Result = 0xC1900101
2022-01-05 14:36:38, Error MOUPG CSetupManager::ExecuteTask(2905): Result = 0xC1900101
2022-01-05 14:36:38, Error MOUPG CSetupManager::ExecuteFinalizeMode(9420): Result = 0xC1900101
2022-01-05 14:36:38, Error MOUPG CSetupManager::ExecuteDownlevelMode(573): Result = 0xC1900101
2022-01-05 14:36:44, Error MOUPG CSetupManager::Execute(313): Result = 0xC1900101
2022-01-05 14:36:44, Error MOUPG CSetupHost::Execute(454): Result = 0xC1900101
2022-01-05 14:37:24, Error MOUPG CSetupHost::ExecuteDiagnosticAnalysis(1630): Result = 0x80004003
解决办法:
- win+R后,输入msconfig,回车
- 点击服务选项卡,勾选隐藏Microsoft服务,点击全部禁用
- 重启