Dism mount wim file error

Discussion in 'Windows 7' started by quywz, Sep 20, 2018.

  1. quywz

    quywz MDL Member

    Jun 30, 2017
    118
    7
    10
    #1 quywz, Sep 20, 2018
    Last edited: Sep 21, 2018
    I am trying to mount a wim file to a folder using the dism command(running cmd.exe as admin):

    Code:
    Dism /Mount-Wim /WimFile:D:\WinPE_amd64\ISO\sources\boot.wim /index:1 /MountDir:D:\WinPE_amd64\mount
    but it is coming back with the following errorcode 5,that Access is denied.

    I have checked the file permissions on both the folder containing the WIM file and the folder I am trying to mount to, both have full control.

    The dism.log

    Code:
    2018-09-19 14:28:48, Info                  DISM   PID=740 Scratch directory set to 'X:\windows\TEMP\'. - CDISMManager::put_ScratchDir
    2018-09-19 14:28:48, Info                  DISM   PID=740 Successfully loaded the ImageSession at "X:\windows\System32\Dism" - CDISMManager::LoadImageSession
    2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    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
    2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
    2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    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
    2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    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
    2018-09-19 14:28:48, Info                  DISM   DISM Manager: PID=740 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
    2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    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
    2018-09-19 14:28:48, Info                  DISM   DISM.EXE:
    2018-09-19 14:28:48, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
    2018-09-19 14:28:48, Info                  DISM   DISM.EXE:
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
    2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
    2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
    2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
    2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
    2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
    2018-09-19 14:28:48, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
    2018-09-19 14:28:48, Info                  DISM   DISM Provider Store: PID=740 Getting Provider WimManager - CDISMProviderStore::GetProvider
    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
    2018-09-19 14:29:05, Error                 DISM   DISM WIM Provider: PID=740 Failed to mount the image. - CWimImageInfo::Mount(hr:0x80070005)
    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)
    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)
    2018-09-19 14:29:05, Error                 DISM   DISM WIM Provider: PID=740 Error executing command - CWimManager::InternalExecuteCmd(hr:0x80070005)
    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)
    2018-09-19 14:29:05, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
    2018-09-19 14:29:05, Info                  DISM   DISM.EXE:
    2018-09-19 14:29:05, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
    2018-09-19 14:29:05, Info                  DISM   DISM.EXE:
    2018-09-19 14:29:05, Info                  DISM   DISM Image Session: PID=740 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect
    2018-09-19 14:29:05, Info                  DISM   DISM Provider Store: PID=740 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider
    2018-09-19 14:29:05, Info                  DISM   DISM Provider Store: PID=740 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
    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
    2018-09-19 14:29:05, Info                  DISM   DISM Provider Store: PID=740 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider
    2018-09-19 14:29:05, Info                  DISM   DISM Provider Store: PID=740 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider
    
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,318
    340
    The log says the drive is D :

    you could move wim to another location and use other mount directory
     
  3. quywz

    quywz MDL Member

    Jun 30, 2017
    118
    7
    10
    when copying command text,I forgot to modify.It is not reason,no difference.