查看: 2934|回复: 2
收起左侧

[求助] dism挂载wim文件错误

[复制链接]
去也无踪
发表于 2018-9-20 09:54:10 | 显示全部楼层 |阅读模式
用dism挂载wim文件提示错误码为5(Access is denied.)。
cmd是用管理员权限运行的。
dism挂载wim文件命令为
  1. Dism /Mount-Wim /WimFile:C:\WinPE_amd64\ISO\sources\boot.wim /index:1 /MountDir:C:\WinPE_amd64\mount
复制代码


已经检查确认了wim文件及其挂载目录的权限,均为完全控制权限。

dism.log

  1. 2018-09-19 14:28:48, Info                  DISM   PID=740 Scratch directory set to 'X:\windows\TEMP\'. - CDISMManager::put_ScratchDir
  2. 2018-09-19 14:28:48, Info                  DISM   PID=740 Successfully loaded the ImageSession at "X:\windows\System32\Dism" - CDISMManager::LoadImageSession
  3. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
  4. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Failed to get and initialize the PE Provider.  Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
  5. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
  6. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
  7. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
  8. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
  9. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
  10. 2018-09-19 14:28:48, Info                  DISM   DISM Manager: PID=740 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
  11. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
  12. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
  13. 2018-09-19 14:28:48, Info                  DISM   DISM.EXE:
  14. 2018-09-19 14:28:48, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
  15. 2018-09-19 14:28:48, Info                  DISM   DISM.EXE:
  16. 2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Host machine information: OS Version=6.1.7601, Running architecture=amd64, Number of processors=1
  17. 2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Executing command line: Dism  /Mount-Wim /WimFile:D:\WinPE_amd64\ISO\sources\boot.wim /index:1 /MountDir:D:\WinPE_amd64\mount
  18. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
  19. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
  20. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Loading Provider from location X:\windows\System32\Dism\WimProvider.dll - CDISMProviderStore::Internal_GetProvider
  21. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Connecting to the provider located at X:\windows\System32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  22. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
  23. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Loading Provider from location X:\windows\System32\Dism\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
  24. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Connecting to the provider located at X:\windows\System32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  25. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
  26. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Loading Provider from location X:\windows\System32\Dism\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider
  27. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Connecting to the provider located at X:\windows\System32\Dism\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
  28. 2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
  29. 2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
  30. 2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
  31. 2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
  32. 2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
  33. 2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
  34. 2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
  35. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Getting Provider WimManager - CDISMProviderStore::GetProvider
  36. 2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
  37. <font color="Blue">2018-09-19 14:29:05, Error                 DISM   DISM WIM Provider: PID=740 Failed to mount the image. - CWimImageInfo::Mount(hr:0x80070005)
  38. 2018-09-19 14:29:05, Error                 DISM   DISM WIM Provider: PID=740 d:\w7rtm\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:999 - CWimManager::InternalOpMount(hr:0x80070005)
  39. 2018-09-19 14:29:05, Error                 DISM   DISM WIM Provider: PID=740 d:\w7rtm\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:2247 - CWimManager::InternalCmdMount(hr:0x80070005)
  40. 2018-09-19 14:29:05, Error                 DISM   DISM WIM Provider: PID=740 Error executing command - CWimManager::InternalExecuteCmd(hr:0x80070005)
  41. 2018-09-19 14:29:05, Error                 DISM   DISM WIM Provider: PID=740 d:\w7rtm\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:516 - CWimManager::ExecuteCmdLine(hr:0x80070005)</font>
  42. 2018-09-19 14:29:05, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
  43. 2018-09-19 14:29:05, Info                  DISM   DISM.EXE:
  44. 2018-09-19 14:29:05, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
  45. 2018-09-19 14:29:05, Info                  DISM   DISM.EXE:
  46. 2018-09-19 14:29:05, Info                  DISM   DISM Image Session: PID=740 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect
  47. 2018-09-19 14:29:05, Info                  DISM   DISM Provider Store: PID=740 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider
  48. 2018-09-19 14:29:05, Info                  DISM   DISM Provider Store: PID=740 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
  49. 2018-09-19 14:29:05, Info                  DISM   DISM Provider Store: PID=740 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
  50. 2018-09-19 14:29:05, Info                  DISM   DISM Provider Store: PID=740 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider
  51. 2018-09-19 14:29:05, Info                  DISM   DISM Provider Store: PID=740 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider
复制代码




砚绯绫 该用户已被删除
发表于 2018-9-21 02:27:48 | 显示全部楼层
以下基于个人猜测:
尝试把需要挂载的源和目的路径放到非系统盘。
DISM文件版本需要大于或者等于WIM文件的系统版本。

去也无踪
 楼主| 发表于 2018-9-21 14:09:00 | 显示全部楼层
砚绯绫 发表于 2018-9-21 02:27
以下基于个人猜测:
尝试把需要挂载的源和目的路径放到非系统盘。
DISM文件版本需要大于或者等于WIM文件 ...

这两个因素都可以排除。
有可能是和注册表有关。主要是添加explorer.exe后出现这个问题的。仅添加explorer.exe及其相关文件,也是没有问题的。一旦使用注册表就会出现这个错误。但是很肯定的是没有修改过关于注册表里和dism/imagex相关的内容。imagex也有相同的错误。
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-12-26 12:47 , Processed in 0.121109 second(s), 16 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

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