欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

无法安装Windows 10 已将你的电脑设置回开始安装Windows 10前的状态。 0x80070005 - 0x2000A 在PREPARE_ FIRST. _BOOT操作过程中的SAFE_ OS阶段,安装失败,出现错误 chatgpt 有大用

无法安装Windows 10 已将你的电脑设置回开始安装Windows 10前的状态。 0x80070005 - 0x2000A 在PREPARE_ FIRST. _BOOT操作过程中的SAFE_ OS阶段,安装失败,出现错误 


这个错误信息:

0x80070005 - 0x2000A
在 PREPARE_FIRST_BOOT 操作过程中的 SAFE_OS 阶段安装失败

Windows 升级或安装过程中权限不足(Access Denied) 引起的典型错误。
它发生在系统准备首次启动(Prepare First Boot)阶段时,安装程序尝试修改系统文件或启动项,但因为访问权限、服务冲突、驱动或第三方安全软件阻碍导致失败。


🔍 一、错误原因分析

以下是导致此错误的最常见几类原因:

原因类型说明
1. 系统权限问题安装程序无法写入或修改 C:\$WINDOWS.~BTC:\Windows 内的关键文件。
2. 第三方软件干扰安全软件(如 360、火绒、Defender 增强保护、杀毒软件)拦截系统改写。
3. 系统服务未启用Windows Update、BITS、Cryptographic Services 等未运行。
4. 驱动或启动项冲突某些旧驱动或系统优化工具修改了引导配置(如 EasyBCD、旧显卡驱动)。
5. 从非管理员身份启动升级用普通用户运行 setup.exe 导致权限不够。
6. 已挂载的外部设备干扰插着U盘、移动硬盘、读卡器时也可能触发此错误。

🧭 二、针对性解决步骤

✅ 1. 以管理员身份运行升级

右键你的 Windows 10 安装介质里的 setup.exe → 选择 “以管理员身份运行”

⚠️ 特别注意:
千万不要从文件管理器直接双击运行。必须“右键→管理员运行”。


✅ 2. 禁用或卸载第三方安全软件

卸载或暂时关闭:

  • 360安全卫士 / 火绒 / 腾讯电脑管家

  • 驱动人生 / 驱动精灵 / 驱动总裁后台服务

  • EasyDrv(万能驱动助理)后台常驻模块


✅ 3. 检查系统服务状态

打开命令提示符(管理员)运行:

sc config wuauserv start= auto sc config bits start= auto sc config cryptsvc start= auto sc start wuauserv sc start bits sc start cryptsvc


这三项必须都是“正在运行”。


✅ 4. 清理临时安装文件

运行以下命令(管理员):

rd /s /q C:\$WINDOWS.~BT rd /s /q C:\$WINDOWS.~WS


然后再启动安装程序。


✅ 5. 断开所有外设

  • 拔掉U盘、移动硬盘、打印机、蓝牙适配器;

  • 仅保留键盘、鼠标;

  • 若是用ISO文件,右键→“装载” → 从虚拟光驱运行 setup.exe


✅ 6. 干净启动后再升级

运行:

msconfig


→ “服务” → 勾选“隐藏所有 Microsoft 服务” → 全部禁用
→ “启动” → 打开任务管理器 → 禁用所有启动项 → 重启电脑
→ 再运行安装。


✅ 7. 检查日志进一步确认

查看升级失败日志:

C:\$WINDOWS.~BT\Sources\Panther\setuperr.log C:\$WINDOWS.~BT\Sources\Panther\setupact.log


可将这两个文件打包发上来(或贴出最后 50 行),我可帮你分析具体卡在哪一步。


🔧 进阶建议

如果你是用 ISO 文件升级(非 Windows Update),请确认:

  • ISO 是 同一语言、同一架构(x64/x86)

  • 与当前系统版本接近(例如从 19041 升级到 19045);

  • 若使用命令行安装,可加参数:

setup.exe /auto upgrade /DynamicUpdate disable /Compat IgnoreWarning /ShowOOBE none



💡 如果以上都失败

可以尝试:

  • 脱机安装法:把 ISO 解压到 D 盘,再用 setup.exe 启动;

  • DISM 就地升级

    dism /Online /Cleanup-Image /RestoreHealth sfc /scannow


    再尝试升级。


如果你方便,请告诉我:

  1. 当前系统版本号(winver 输出)

  2. 你是从 ISO 升级还是 Windows Update 升级

  3. 是否能贴出 setuperr.log 末尾几行

我可以据此精准判断是哪一类权限问题导致的。


image.png

从iso 升级 2025-10-18 21:24:42, Info                  SP     CRelocateOS: Moving previous OS piece from C:\Users to C:\Windows.old\Users 2025-10-18 21:24:42, Info                  SP     VERBOSE: Path C:\Users has no exceptions, trying a straight move 2025-10-18 21:24:42, Info                  SP     VERBOSE: Successfully moved (1) C:\Users to C:\Windows.old\Users 2025-10-18 21:24:42, Info                  SP     CRelocateOS: Moving previous OS piece from C:\ProgramData to C:\Windows.old\ProgramData 2025-10-18 21:24:42, Info                  SP     VERBOSE: Path C:\ProgramData has no exceptions, trying a straight move 2025-10-18 21:24:42, Info                  SP     VERBOSE: Successfully moved (1) C:\ProgramData to C:\Windows.old\ProgramData 2025-10-18 21:24:42, Info                  SP     CRelocateOS: Moving previous OS piece from C:\inetpub to C:\Windows.old\inetpub 2025-10-18 21:24:42, Info                  SP     VERBOSE: Path C:\inetpub has no exceptions, trying a straight move 2025-10-18 21:24:42, Warning               SP     SPMoveFileWithShortName: Failed to move C:\inetpub to C:\Windows.old\inetpub, error: 0x00000002 2025-10-18 21:24:42, Info                  SP     CRelocateOS: Moving previous OS piece from C:\SkyDriveTemp to C:\Windows.old\SkyDriveTemp 2025-10-18 21:24:42, Info                  SP     VERBOSE: Path C:\SkyDriveTemp has no exceptions, trying a straight move 2025-10-18 21:24:42, Warning               SP     SPMoveFileWithShortName: Failed to move C:\SkyDriveTemp to C:\Windows.old\SkyDriveTemp, error: 0x00000002 2025-10-18 21:24:42, Info                  SP     CRelocateOS: Moving previous OS piece from C:\Recovery to C:\Windows.old\Recovery 2025-10-18 21:24:42, Info                  SP     VERBOSE: Successfully created target folder C:\Windows.old\Recovery 2025-10-18 21:24:42, Info                  SP     VERBOSE: Path C:\Recovery\Logs has no exceptions, trying a straight move 2025-10-18 21:24:42, Info                  SP     VERBOSE: Successfully moved (1) C:\Recovery\Logs to C:\Windows.old\Recovery\Logs 2025-10-18 21:24:42, Info                  SP     VERBOSE: Path C:\Recovery\ReAgentOld.xml is the exception, skipping 2025-10-18 21:24:42, Info                  SP     Final list of destination OS pieces: 2025-10-18 21:24:42, Info                  SP         Name: WINDOWS, Original path: C:\Windows, Current path: C:\$WINDOWS.~BT\NewOS\Windows (do not allow relocation) 2025-10-18 21:24:42, Info                  SP         Name: PROGRAMS, Original path: C:\Program Files, Current path: C:\$WINDOWS.~BT\NewOS\Program Files (do not allow relocation) 2025-10-18 21:24:42, Info                  SP         Name: PROGRAMSX86, Original path: C:\Program Files (x86), Current path: C:\$WINDOWS.~BT\NewOS\Program Files (x86) (do not allow relocation) 2025-10-18 21:24:42, Info                  SP         Name: USERS, Original path: C:\Users, Current path: C:\$WINDOWS.~BT\NewOS\Users (allow relocation) 2025-10-18 21:24:42, Info                  SP         Name: PROGRAMDATA, Original path: C:\ProgramData, Current path: C:\$WINDOWS.~BT\NewOS\ProgramData (do not allow relocation) 2025-10-18 21:24:42, Info                  SP         Name: INETPUB, Original path: C:\inetpub, Current path: C:\$WINDOWS.~BT\NewOS\inetpub (do not allow relocation) 2025-10-18 21:24:42, Info                  SP         Name: SKYDRIVETEMP, Original path: C:\SkyDriveTemp, Current path: C:\$WINDOWS.~BT\NewOS\SkyDriveTemp (do not allow relocation) 2025-10-18 21:24:42, Info                  SP         Name: RECOVERY, Original path: C:\Recovery, Current path: C:\$WINDOWS.~BT\NewOS\Recovery (do not allow relocation) 2025-10-18 21:24:42, Info                  SP     CRelocateOS: Moving new OS pieces from C:\$WINDOWS.~BT\NewOS to C:\ 2025-10-18 21:24:42, Info                  SP     CRelocateOS: Collision detected for path C:\DumpStack.log.tmp, which is not an OS piece. Moving out of the way. 2025-10-18 21:24:42, Info                  SP     VERBOSE: Path C:\DumpStack.log.tmp has no exceptions, trying a straight move 2025-10-18 21:24:42, Info                  SP     VERBOSE: Successfully moved (1) C:\DumpStack.log.tmp to C:\Windows.old\DumpStack.log.tmp 2025-10-18 21:24:42, Info                  SP     CRelocateOS: Moving new OS piece from C:\$WINDOWS.~BT\NewOS\DumpStack.log.tmp to C:\DumpStack.log.tmp 2025-10-18 21:24:42, Info                  SP     VERBOSE: Path C:\$WINDOWS.~BT\NewOS\DumpStack.log.tmp has no exceptions, trying a straight move 2025-10-18 21:24:42, Info                  SP     VERBOSE: Successfully moved (1) C:\$WINDOWS.~BT\NewOS\DumpStack.log.tmp to C:\DumpStack.log.tmp 2025-10-18 21:24:42, Info                  SP     CRelocateOS: Collision detected for path C:\$WINDOWS.~BT, which is not an OS piece. Moving out of the way. 2025-10-18 21:24:42, Info                  SP     VERBOSE: Path C:\$WINDOWS.~BT has no exceptions, trying a straight move 2025-10-18 21:24:42, Warning               SP     SPMoveFileWithShortName: Failed to move C:\$WINDOWS.~BT to C:\Windows.old\$WINDOWS.~BT, error: 0x00000005 2025-10-18 21:24:42, Error                 SP     CRelocateOS: Cannot move path C:\$WINDOWS.~BT out of the way of the new OS. Error: 0x00000005[gle=0x00000005] 2025-10-18 21:24:42, Info                  SP     SetupPlatform: Global progress: 12, Phase progress: 41 2025-10-18 21:24:42, Error                 SP     Operation failed: Relocate OS from C:\$WINDOWS.~BT\NewOS to C:\. Error: 0x80070005[gle=0x000000b7] 2025-10-18 21:24:42, Error                 SP     Operation execution failed: 10. hr = 0x80070005 2025-10-18 21:24:42, Error                 SP     ExecuteOperations: Failed execution phase Safe OS. Error: 0x80070005 2025-10-18 21:24:42, Error                 SP     CSetupPlatformPrivate::Execute: Execution of operations queue failed, abandoning. Error: 0x80070005 2025-10-18 21:24:42, Info                         Persisting diagnostics data to C:\$WINDOWS.~BT\Sources\Diagnostics\diagnostics.dat 2025-10-18 21:24:42, Info                         Diagnostics data saved successfully 2025-10-18 21:24:42, Info                  SP     Execution phase [Safe OS] exiting with HRESULT [0x80070005] 2025-10-18 21:00:33, Error                 MOUPG  CMoSetupOneSettingsHelperT<class CEmptyType>::InitializeSettings(324): Result = 0x80072EE7 2025-10-18 21:00:33, Error                 MOUPG  CSetupHost::InitializeOneSettings(1341): Result = 0x80072EE7 2025-10-18 21:00:33, Error                 MOUPG  SetupHost: OneSettings initialization failed: [0x80072EE7] 2025-10-18 21:00:53, Error                 CONX   Windows::Compat::Appraiser::IsMeteredConnection (207):   Failed to get NetworkCostType assuming metered network [0x80004005].[gle=0x80004005] 2025-10-18 21:01:03, Error                 CONX   Windows::Compat::Appraiser::AppraiserSettings::GetSettingsInternal (381):   Failed to Query OneSettings [0x80072ee7] :: (ForcedOptIn:[FALSE], IsOptedIntoCore:[TRUE], IsOptedIntoCommercial:[FALSE], AllowedToQueryServer:[TRUE])[gle=0x80072ee7] 2025-10-18 21:01:19, Error                 CSI    00000001 (F) STATUS_OBJECT_NAME_NOT_FOUND #40# from Windows::Rtl::SystemImplementation::DirectRegistryProvider::SysQueryValueKey(flags = 0, key = ae4 ('\REGISTRY\MACHINE\SYSTEM\Setup'), vn = [l:7 ml:8]'Compact', kvic = 2, kvi = 2, disp = 0)[gle=0xd0000034] 2025-10-18 21:01:19, Error                 CSI    00000002 (F) STATUS_OBJECT_NAME_NOT_FOUND #39# from Windows::Rtl::SystemImplementation::CKey::QueryValue(flags = 0, kn = [l:31]'\Registry\Machine\SYSTEM\Setup\', vn = [l:7 ml:8]'Compact', ic = KeyValuePartialInformation, info = {l:0 b:}, disp = 0)[gle=0xd0000034] 2025-10-18 21:01:21, Error                 CSI    00000003 (F) STATUS_OBJECT_NAME_NOT_FOUND #84# from Windows::Rtl::SystemImplementation::DirectRegistryProvider::SysQueryValueKey(flags = 0, key = a8c ('\REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts'), vn = [l:21 ml:22]'Arial Nova (TrueType)', kvic = 2, kvi = 2, disp = 0)[gle=0xd0000034] 2025-10-18 21:01:21, Error                 CSI    00000004 (F) STATUS_OBJECT_NAME_NOT_FOUND #83# from Windows::Rtl::SystemImplementation::CKey::QueryValue(flags = 0, kn = [l:69]'\Registry\Machine\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts\', vn = [l:21 ml:22]'Arial Nova (TrueType)', ic = KeyValuePartialInformation, info = {l:0 b:}, disp = 0)[gle=0xd0000034] 2025-10-18 21:01:21, Error                 CONX   Windows::Compat::Appraiser::IsMeteredConnection (207):   Failed to get NetworkCostType assuming metered network [0x80004005].[gle=0x80004005] 2025-10-18 21:01:31, Error                 CONX   Windows::Compat::Appraiser::AppraiserSettings::GetSettingsInternal (381):   Failed to Query OneSettings [0x80072ee7] :: (ForcedOptIn:[FALSE], IsOptedIntoCore:[TRUE], IsOptedIntoCommercial:[FALSE], AllowedToQueryServer:[TRUE])[gle=0x80072ee7] 2025-10-18 21:01:32, Error                 CONX   aeinv: ERROR,GetAppInventory,102,Inventory already running: [0x800700aa] 2025-10-18 21:01:41, Error                 CONX   aeinv: ERROR,OrphanFileFinder::GetEvidence,98,Message too long! 2025-10-18 21:13:03, Error                 SP     pSPRemoveUpgradeRegTree: failed to delete reg tree HKLM\SYSTEM\Setup\Upgrade[gle=0x00000005] 2025-10-18 21:13:26, Error                 MIG    Ignoring replacement manifest with no settingsVersionRange or versionRange attribute in migration element: Microsoft-Windows-Container-Manager 2025-10-18 21:13:28, 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 *) 2025-10-18 21:13:34, Error      [0x080366] MIG    String or RParan expected. Script MigXmlHelper.RelativeMove('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [Enabled]',            'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [ThrottleFramerate]') 2025-10-18 21:13:34, Error      [0x080831] MIG    CSIAgent: Invalid xml format: FormatException: Callback entry point MigXmlHelper.RelativeMove('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [Enabled]',            'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [ThrottleFramerate]') not found. __cdecl Mig::CMXEScriptCaller::CMXEScriptCaller(class UnBCL::String *,class Mig::CMXEMigrationXml *,class Mig::CMXEXmlComponent *) 2025-10-18 21:14:36, Error                 MIG    Ignoring replacement manifest with no settingsVersionRange or versionRange attribute in migration element: Microsoft-Windows-Container-Manager 2025-10-18 21:14:40, Error      [0x080366] MIG    String or RParan expected. Script MigXmlHelper.RelativeMove('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [Enabled]',            'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [ThrottleExperience]') 2025-10-18 21:14:40, Error      [0x080831] MIG    CSIAgent: Invalid xml format: FormatException: Callback entry point MigXmlHelper.RelativeMove('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [Enabled]',            'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [ThrottleExperience]') not found. __cdecl Mig::CMXEScriptCaller::CMXEScriptCaller(class UnBCL::String *,class Mig::CMXEMigrationXml *,class Mig::CMXEXmlComponent *) 2025-10-18 21:14:40, Error      [0x080831] MIG    CSIAgent: Invalid xml format: FormatException: Component with display name: Plugin/{C939EC0F-2F56-4CE8-AF56-2336596A5FA7} already loaded __cdecl Mig::CMXEMigrationXml::CMXEMigrationXml(class Mig::CPlatform *,class UnBCL::String *,class UnBCL::XmlDocument *,class UnBCL::String *,class UnBCL::String *) 2025-10-18 21:16:31, Error                 SP     CSetupPlatform::ResurrectAutomation: Failed to resurrect automation: 0x80070002[gle=0x00000002] 2025-10-18 21:20:26, Error                 MIG    Ignoring replacement manifest with no settingsVersionRange or versionRange attribute in migration element: Microsoft-Windows-Container-Manager 2025-10-18 21:20:38, Error      [0x080366] MIG    String or RParan expected. Script MigXmlHelper.RelativeMove('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [Enabled]',            'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [ThrottleExperience]') 2025-10-18 21:20:38, Error      [0x080831] MIG    CSIAgent: Invalid xml format: FormatException: Callback entry point MigXmlHelper.RelativeMove('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [Enabled]',            'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [ThrottleExperience]') not found. __cdecl Mig::CMXEScriptCaller::CMXEScriptCaller(class UnBCL::String *,class Mig::CMXEMigrationXml *,class Mig::CMXEXmlComponent *) 2025-10-18 21:20:38, Error      [0x080831] MIG    CSIAgent: Invalid xml format: FormatException: Component with display name: Plugin/{C939EC0F-2F56-4CE8-AF56-2336596A5FA7} already loaded __cdecl Mig::CMXEMigrationXml::CMXEMigrationXml(class Mig::CPlatform *,class UnBCL::String *,class UnBCL::XmlDocument *,class UnBCL::String *,class UnBCL::String *) 2025-10-18 21:21:44, Error      [0x0808fe] MIG    Plugin {0b23c863-4410-4153-8733-a60c9b1990fb}: TableTextServiceMig!RemoveObsoleteCHSHKLMRegkey - fail to open regkey (software\Microsoft\CTF\TIP\{E429B25A-E5D3-4D1F-9BE3-0C608477E3A1}\LanguageProfile\0x00000804) = 2 2025-10-18 21:21:44, Error      [0x0808fe] MIG    Plugin {0b23c863-4410-4153-8733-a60c9b1990fb}: TableTextServiceMig!ApplySuccess() remove HKLM Registries error 2025-10-18 21:21:44, Error      [0x0808fe] MIG    Plugin {526D451C-721A-4b97-AD34-DCE5D8CD22C5}: [shmig] onecoreuap\internal\shell\inc\private\schemacachehelpers.cpp(607)\shmig.dll!00007FF847D773BE: (caller: 00007FF847D75315) ReturnHr(1) tid(6b4) 80070002 系统找不到指定的文件。    Msg:[Migrated key for Path $OFFLINE_RW_BCE441CA$SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\PropertySystem\PropertySchema.Migrated for 32-bit hive not found ] 2025-10-18 21:21:44, Error      [0x0808fe] MIG    Plugin {526D451C-721A-4b97-AD34-DCE5D8CD22C5}: [shmig] onecoreuap\internal\shell\inc\private\schemacachehelpers.cpp(607)\shmig.dll!00007FF847D773BE: (caller: 00007FF847D75348) ReturnHr(2) tid(6b4) 80070002 系统找不到指定的文件。    Msg:[Migrated key for Path $OFFLINE_RW_BCE441CA$SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertySchema.Migrated for 64-bit hive not found ] 2025-10-18 21:21:45, Error      [0x0808fe] MIG    Plugin {ee036dc0-f9b7-4d2d-bb94-3dd3102c5804}: BRIDGEMIG: ParseRegistryIfBridgeExists: offline key (new) = '$OFFLINE_RW_BCE441CA$SYSTEM\Setup\Upgrade\Bridge' 2025-10-18 21:21:45, Error      [0x0808fe] MIG    Plugin {ee036dc0-f9b7-4d2d-bb94-3dd3102c5804}: BRIDGEMIG: ParseRegistryIfBridgeExists: query bridge presence key failed 0x139f, bridge present = 0 2025-10-18 21:21:45, Error      [0x08038d] MIG    Failure while calling IPostApply->ApplySuccess for Plugin={ServerPath="Microsoft-Windows-DirectoryServices-ADAM-Client\adammigrate.dll", CLSID={43CCF250-2A74-48c6-9620-FC312EC475D6}, ThreadingModel=Apartment}. Error: 0x80070002 2025-10-18 21:21:45, Error                 SP     Error READ, 0x00000002 while gathering/applying object: apply-success, Action,CMXEPlugin,C:\$WINDOWS.~BT\Sources\ReplacementManifests,Microsoft-Windows-DirectoryServices-ADAM-Client\adammigrate.dll,{43CCF250-2A74-48c6-9620-FC312EC475D6},Apartment. Will return 2[gle=0x000000cb] 2025-10-18 21:21:50, Error                 MIG    Ignoring replacement manifest with no settingsVersionRange or versionRange attribute in migration element: Microsoft-Windows-Container-Manager 2025-10-18 21:21:54, 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 *) 2025-10-18 21:21:56, Error      [0x080366] MIG    String or RParan expected. Script MigXmlHelper.RelativeMove('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [Enabled]',            'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [ThrottleFramerate]') 2025-10-18 21:21:56, Error      [0x080831] MIG    CSIAgent: Invalid xml format: FormatException: Callback entry point MigXmlHelper.RelativeMove('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [Enabled]',            'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Holographic\DisplayThrottling [ThrottleFramerate]') not found. __cdecl Mig::CMXEScriptCaller::CMXEScriptCaller(class UnBCL::String *,class Mig::CMXEMigrationXml *,class Mig::CMXEXmlComponent *) 2025-10-18 21:21:57, Error      [0x0803eb] MIG    Error: 161 Message: Error opening the key HKLM\SOFTWARE\\System\CurrentControlSet\Control\TabletPC: 指定的路径无效。 [0x000000A1][gle=0x00000002] 2025-10-18 21:21:57, Error      [0x0803eb] MIG    Error: 161 Message: Error opening the key HKLM\SOFTWARE\\System\CurrentControlSet\Control\TabletPC: 指定的路径无效。 [0x000000A1][gle=0x00000002] 2025-10-18 21:22:01, Error      [0x0808fe] MIG    Plugin {050ed09e-a530-41e6-8ac9-a9a96e74a2c1}: [shmig] onecoreuap\internal\shell\inc\private\UserChoiceHelpers.h(810)\shmig.dll!00007FF847A9B935: (caller: 00007FF847A9BFD0) LogHr(1) tid(f2c) 80070002 系统找不到指定的文件。 2025-10-18 21:22:07, Error      [0x0808fe] MIG    Plugin {050ed09e-a530-41e6-8ac9-a9a96e74a2c1}: [shmig] onecoreuap\internal\shell\inc\private\UserChoiceHelpers.h(810)\shmig.dll!00007FF84A83B935: (caller: 00007FF84A83BFD0) LogHr(1) tid(10bc) 80070002 系统找不到指定的文件。 2025-10-18 21:22:16, Error      [0x0808fe] MIG    Plugin {0b23c863-4410-4153-8733-a60c9b1990fb}: TableTextServiceMig!RemoveObsoleteCHSHKLMRegkey - fail to open regkey (software\Microsoft\CTF\TIP\{E429B25A-E5D3-4D1F-9BE3-0C608477E3A1}\LanguageProfile\0x00000804) = 2 2025-10-18 21:22:16, Error      [0x0808fe] MIG    Plugin {0b23c863-4410-4153-8733-a60c9b1990fb}: TableTextServiceMig!ApplySuccess() remove HKLM Registries error 2025-10-18 21:24:42, Error                 SP     CRelocateOS: Cannot move path C:\$WINDOWS.~BT out of the way of the new OS. Error: 0x00000005[gle=0x00000005] 2025-10-18 21:24:42, Error                 SP     Operation failed: Relocate OS from C:\$WINDOWS.~BT\NewOS to C:\. Error: 0x80070005[gle=0x000000b7] 2025-10-18 21:24:42, Error                 SP     Operation execution failed: 10. hr = 0x80070005 2025-10-18 21:24:42, Error                 SP     ExecuteOperations: Failed execution phase Safe OS. Error: 0x80070005 2025-10-18 21:24:42, Error                 SP     CSetupPlatformPrivate::Execute: Execution of operations queue failed, abandoning. Error: 0x80070005



非常好,你贴出的日志信息非常关键。根据这些日志片段可以明确判断:


⚠️ 核心错误(根因)

SPMoveFileWithShortName: Failed to move C:\$WINDOWS.~BT to C:\Windows.old\$WINDOWS.~BT, error: 0x00000005 CRelocateOS: Cannot move path C:\$WINDOWS.~BT out of the way of the new OS. Error: 0x00000005 Operation failed: Relocate OS from C:\$WINDOWS.~BT\NewOS to C:\. Error: 0x80070005


0x80070005 = Access Denied(访问被拒绝)

在升级的 SAFE_OS 阶段,安装程序要把新系统临时目录 $WINDOWS.~BT 移到 C:\,同时将旧系统转移到 C:\Windows.old
但由于 $WINDOWS.~BT 文件夹的权限或所有权有问题,系统无法移动它,因此升级被中止。


🧭 解决方案(按顺序执行)

✅ 1. 删除旧的安装缓存

以管理员身份运行 命令提示符(CMD)

takeown /F C:\$WINDOWS.~BT /A /R /D Y icacls C:\$WINDOWS.~BT /grant administrators:F /T rd /s /q C:\$WINDOWS.~BT rd /s /q C:\$WINDOWS.~WS


这会重新获取 $WINDOWS.~BT 目录的所有权并彻底清理掉。

🔸 提示:如果命令提示“拒绝访问”,请重启后再执行一次。


✅ 2. 以管理员身份启动安装程序

重新挂载你的 ISO(右键 → “装载”),然后在虚拟光驱中:

右键 setup.exe → 选择 “以管理员身份运行”

不要从资源管理器直接双击!否则仍可能没有完全的 SYSTEM 权限。


✅ 3. 禁用/卸载所有安全软件

包括:

  • 火绒 / 360 / 腾讯电脑管家 / Defender 增强防护

  • 驱动人生、驱动精灵等自动更新工具

在升级前必须完全退出或卸载。


✅ 4. 断开所有外设

拔掉:

  • U 盘、移动硬盘、读卡器;

  • 打印机、蓝牙设备;

  • 仅保留键盘 + 鼠标。


✅ 5. 干净启动后重试

运行 输入:

msconfig


→ “服务” → 勾选“隐藏所有 Microsoft 服务” → 全部禁用
→ “启动” → 打开任务管理器 → 禁用所有启动项
→ 重启系统 → 再以管理员身份运行 setup.exe


✅ 6. (可选)修复系统镜像后再升级

如果仍失败,请运行:

sfc /scannow dism /Online /Cleanup-Image /RestoreHealth


然后再尝试升级。


✅ 7. 确认 ISO 来源与版本

你现在的版本是:

Windows 10 企业版 LTSC 21H2(19044.1288)

⚠️ 注意:

  • LTSC 版本 不能直接升级到普通企业版或专业版

  • 必须用 相同分支的镜像 才能“就地升级”。

举例:

  • LTSC 2021 → 只能升级到 LTSC 2021 更新版(如 19044.4412 等);

  • 若你用的是“企业版非 LTSC ISO”,升级会被阻止。

你可以检查 ISO 文件名中是否包含:

LTSC 19044 x64


否则换成正确的 LTSC ISO 镜像。


✅ 总结

步骤作用
删除 $WINDOWS.~BT清除权限锁定的临时目录
管理员运行 setup.exe避免“访问被拒绝”
干净启动 + 关闭杀软避免服务锁文件
用相同版本 ISO防止分支不兼容
修复系统镜像防止底层文件系统异常

如果你愿意,我可以帮你:

  1. 检查你使用的 ISO 是否为正确的 LTSC 升级版本(只需告诉我 ISO 文件名);

  2. 给出一条完整的升级命令行参数(跳过检查、动态更新、日志收集等)。

是否方便告诉我你用的 ISO 文件名?(例如:en-us_windows_10_enterprise_ltsc_2021_x64_dvd.iso


普通分类: