搜索
查看: 8077|回复: 4

[经验分享/技术讨论] DISM错误“系统找不到指定的路径。”研究

[复制链接]
发表于 2020-6-3 16:36:28 | 显示全部楼层 |阅读模式
普通帖子
帖子关键词: -
系统:Windows10 2004
DISM版本: 10.0.19041.1


DISM部署WIM文件的命令一般是类似这样的格式

Dism.exe /Apply-Image /ImageFile:"C:\sources\install.wim" /ApplyDir:E: /Index:4

执行后出现“错误: 3,系统找不到指定的路径。” 有两个可能的原因
ImageFile找不到或ApplyDir找不到。

为了具体确定错误原因,我模拟了三种情形
1. ImageFile错误,ApplyDir正确
2. ImageFile正确,ApplyDir错误
3. 全都错


Windows 10 x64 2004 Ent-2020-06-03-16-26-12.png

命令行显示均为错误: 3,系统找不到指定的路径,没有区别。

下面看dism.log,三种情况的日志分别为

1.

  1. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
  2. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE:
  3. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Host machine information: OS Version=10.0.19041, Running architecture=amd64, Number of processors=8
  4. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Dism.exe version: 10.0.19041.1
  5. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Executing command line: Dism.exe  /Apply-Image /ImageFile:"C:\sources\install.wim" /ApplyDir:E: /Index:4
  6. 2020-06-03 16:22:04, Info                  DISM   DISM Provider Store: PID=5324 TID=8876 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
  7. 2020-06-03 16:22:04, Info                  DISM   DISM Provider Store: PID=5324 TID=8876 Connecting to the provider located at C:\Windows\system32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  8. 2020-06-03 16:22:04, Warning               DISM   DISM Provider Store: PID=5324 TID=8876 Failed to load the provider: C:\Windows\system32\Dism\SiloedPackageProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
  9. 2020-06-03 16:22:04, Info                  DISM   DISM Provider Store: PID=5324 TID=8876 Connecting to the provider located at C:\Windows\system32\Dism\FfuProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  10. 2020-06-03 16:22:04, Info                  DISM   DISM Provider Store: PID=5324 TID=8876 Connecting to the provider located at C:\Windows\system32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  11. 2020-06-03 16:22:04, Info                  DISM   DISM Provider Store: PID=5324 TID=8876 Connecting to the provider located at C:\Windows\system32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  12. 2020-06-03 16:22:04, Info                  DISM   DISM Provider Store: PID=5324 TID=8876 Connecting to the provider located at C:\Windows\system32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  13. 2020-06-03 16:22:04, Warning               DISM   DISM Provider Store: PID=5324 TID=8876 Failed to load the provider: C:\Windows\system32\Dism\MetaDeployProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
  14. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
  15. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
  16. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
  17. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FfuManager
  18. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: FfuManager.
  19. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
  20. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
  21. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: VHDManager
  22. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: GenericImagingManager
  23. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.
  24. 2020-06-03 16:22:04, Error                 DISM   DISM WIM Provider: PID=5324 TID=8876 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:881 - CWimManager::Apply(hr:0x80070003)
  25. 2020-06-03 16:22:04, Error                 DISM   DISM Imaging Provider: PID=5324 TID=8876 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:2829 - CGenericImagingManager::InternalCmdWimApply(hr:0x80070003)
  26. 2020-06-03 16:22:04, Error                 DISM   DISM Imaging Provider: PID=5324 TID=8876 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:537 - CGenericImagingManager::ExecuteCmdLine(hr:0x80070003)
  27. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
  28. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE:
  29. 2020-06-03 16:22:04, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
复制代码


2.

  1. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
  2. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE:
  3. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Host machine information: OS Version=10.0.19041, Running architecture=amd64, Number of processors=8
  4. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Dism.exe version: 10.0.19041.1
  5. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Executing command line: Dism.exe  /Apply-Image /ImageFile:"D:\sources\install.wim" /ApplyDir:G: /Index:4
  6. 2020-06-03 16:22:24, Info                  DISM   DISM Provider Store: PID=5008 TID=420 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
  7. 2020-06-03 16:22:24, Info                  DISM   DISM Provider Store: PID=5008 TID=420 Connecting to the provider located at C:\Windows\system32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  8. 2020-06-03 16:22:24, Warning               DISM   DISM Provider Store: PID=5008 TID=420 Failed to load the provider: C:\Windows\system32\Dism\SiloedPackageProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
  9. 2020-06-03 16:22:24, Info                  DISM   DISM Provider Store: PID=5008 TID=420 Connecting to the provider located at C:\Windows\system32\Dism\FfuProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  10. 2020-06-03 16:22:24, Info                  DISM   DISM Provider Store: PID=5008 TID=420 Connecting to the provider located at C:\Windows\system32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  11. 2020-06-03 16:22:24, Info                  DISM   DISM Provider Store: PID=5008 TID=420 Connecting to the provider located at C:\Windows\system32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  12. 2020-06-03 16:22:24, Info                  DISM   DISM Provider Store: PID=5008 TID=420 Connecting to the provider located at C:\Windows\system32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  13. 2020-06-03 16:22:24, Warning               DISM   DISM Provider Store: PID=5008 TID=420 Failed to load the provider: C:\Windows\system32\Dism\MetaDeployProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
  14. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
  15. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
  16. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
  17. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FfuManager
  18. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: FfuManager.
  19. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
  20. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
  21. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: VHDManager
  22. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: GenericImagingManager
  23. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.
  24. 2020-06-03 16:22:24, Error                 DISM   DISM WIM Provider: PID=5008 TID=420 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:967 - CWimManager::Apply(hr:0x80070003)
  25. 2020-06-03 16:22:24, Error                 DISM   DISM Imaging Provider: PID=5008 TID=420 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:2829 - CGenericImagingManager::InternalCmdWimApply(hr:0x80070003)
  26. 2020-06-03 16:22:24, Error                 DISM   DISM Imaging Provider: PID=5008 TID=420 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:537 - CGenericImagingManager::ExecuteCmdLine(hr:0x80070003)
  27. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
  28. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE:
  29. 2020-06-03 16:22:24, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
复制代码

3.
  1. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
  2. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE:
  3. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Host machine information: OS Version=10.0.19041, Running architecture=amd64, Number of processors=8
  4. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Dism.exe version: 10.0.19041.1
  5. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Executing command line: Dism.exe  /Apply-Image /ImageFile:"C:\sources\install.wim" /ApplyDir:G: /Index:4
  6. 2020-06-03 16:23:25, Info                  DISM   DISM Provider Store: PID=5412 TID=5084 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
  7. 2020-06-03 16:23:25, Info                  DISM   DISM Provider Store: PID=5412 TID=5084 Connecting to the provider located at C:\Windows\system32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  8. 2020-06-03 16:23:25, Warning               DISM   DISM Provider Store: PID=5412 TID=5084 Failed to load the provider: C:\Windows\system32\Dism\SiloedPackageProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
  9. 2020-06-03 16:23:25, Info                  DISM   DISM Provider Store: PID=5412 TID=5084 Connecting to the provider located at C:\Windows\system32\Dism\FfuProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  10. 2020-06-03 16:23:25, Info                  DISM   DISM Provider Store: PID=5412 TID=5084 Connecting to the provider located at C:\Windows\system32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  11. 2020-06-03 16:23:25, Info                  DISM   DISM Provider Store: PID=5412 TID=5084 Connecting to the provider located at C:\Windows\system32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  12. 2020-06-03 16:23:25, Info                  DISM   DISM Provider Store: PID=5412 TID=5084 Connecting to the provider located at C:\Windows\system32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  13. 2020-06-03 16:23:25, Warning               DISM   DISM Provider Store: PID=5412 TID=5084 Failed to load the provider: C:\Windows\system32\Dism\MetaDeployProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
  14. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
  15. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
  16. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
  17. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FfuManager
  18. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: FfuManager.
  19. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
  20. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
  21. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: VHDManager
  22. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: GenericImagingManager
  23. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.
  24. 2020-06-03 16:23:25, Error                 DISM   DISM WIM Provider: PID=5412 TID=5084 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:881 - CWimManager::Apply(hr:0x80070003)
  25. 2020-06-03 16:23:25, Error                 DISM   DISM Imaging Provider: PID=5412 TID=5084 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:2829 - CGenericImagingManager::InternalCmdWimApply(hr:0x80070003)
  26. 2020-06-03 16:23:25, Error                 DISM   DISM Imaging Provider: PID=5412 TID=5084 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:537 - CGenericImagingManager::ExecuteCmdLine(hr:0x80070003)
  27. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
  28. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE:
  29. 2020-06-03 16:23:25, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
复制代码



经比对发现,不同情况下,wimmanager.cpp错误的行号不同。

1. ImageFile错误,ApplyDir正确,行号881
2. ImageFile正确,ApplyDir错误,行号967
3. 全都错,行号881


DISM版本不同,行号也不同。
回复

使用道具 举报

 楼主| 发表于 2020-6-3 16:47:38 | 显示全部楼层
看了一些错误日志,多数应该是ApplyDir错误,也就是U盘路径找不到。
回复

使用道具 举报

发表于 2020-6-3 17:26:48 | 显示全部楼层
收藏。留个记号
回复

使用道具 举报

发表于 2020-6-25 19:50:02 | 显示全部楼层
研究很有价值。
回复

使用道具 举报

发表于 2020-8-19 22:25:32 来自手机 | 显示全部楼层
所以怎么正常使用呢
回复

使用道具 举报

联系我们(Contact)|手机版|萝卜头IT论坛 ( 苏ICP备15050961号-1 )

GMT+8, 2024-12-25 01:47 , Processed in 0.093281 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表