none
DISM error: 0xc0000135 when attemptign to add drivers to mounted 2012 image

    Question

  • From AIK Elevted command prompt

    Error: 0xc0000135

    An error occurred while attempting to start the servicing process for the image
    located at C:\Temp\x\mnt.
    For more information, review the log file.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    C:\Program Files\Windows AIK\Tools\PETools>

    Logfile entry:


    2013-10-23 19:38:49, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
    2013-10-23 19:38:49, Info                  DISM   DISM.EXE:
    2013-10-23 19:38:49, Info                  DISM   DISM Image Session: PID=7864 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect
    2013-10-23 19:38:49, Info                  DISM   DISM Provider Store: PID=7864 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-10-23 19:38:49, Info                  DISM   DISM Provider Store: PID=7864 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-10-23 19:38:49, Info                  DISM   DISM Provider Store: PID=7864 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2013-10-23 19:38:49, Info                  DISM   DISM Provider Store: PID=7864 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider
    2013-10-23 19:38:49, Info                  DISM   DISM Provider Store: PID=7864 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider
    2013-10-23 19:41:46, Info                  DISM   PID=4800 Scratch directory set to 'C:\Users\CHAD_H~1\AppData\Local\Temp\'. - CDISMManager::put_ScratchDir
    2013-10-23 19:41:46, Info                  DISM   PID=4800 Successfully loaded the ImageSession at "C:\Program Files\Windows AIK\Tools\AMD64\Servicing" - CDISMManager::LoadImageSession
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Failed to get and initialize the PE Provider.  Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-10-23 19:41:46, Info                  DISM   DISM Manager: PID=4800 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-10-23 19:41:46, Info                  DISM   DISM.EXE:
    2013-10-23 19:41:46, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
    2013-10-23 19:41:46, Info                  DISM   DISM.EXE:
    2013-10-23 19:41:46, Info                  DISM   DISM.EXE: Host machine information: OS Version=6.1.7601, Running architecture=amd64, Number of processors=4
    2013-10-23 19:41:46, Info                  DISM   DISM.EXE: Executing command line: dism  /image:C:\Temp\x\mnt /add-driver /driver:C:\Temp\b57nd60a
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Loading Provider from location C:\Program Files\Windows AIK\Tools\AMD64\Servicing\WimProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Connecting to the provider located at C:\Program Files\Windows AIK\Tools\AMD64\Servicing\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Loading Provider from location C:\Program Files\Windows AIK\Tools\AMD64\Servicing\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Connecting to the provider located at C:\Program Files\Windows AIK\Tools\AMD64\Servicing\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Loading Provider from location C:\Program Files\Windows AIK\Tools\AMD64\Servicing\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Connecting to the provider located at C:\Program Files\Windows AIK\Tools\AMD64\Servicing\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-10-23 19:41:46, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
    2013-10-23 19:41:46, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
    2013-10-23 19:41:46, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
    2013-10-23 19:41:46, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
    2013-10-23 19:41:46, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
    2013-10-23 19:41:46, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
    2013-10-23 19:41:46, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
    2013-10-23 19:41:46, Info                  DISM   DISM Provider Store: PID=4800 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
    2013-10-23 19:42:48, Error                 DISM   DismHostLib: Failed to create DismHostManager remote object. Checking for dismhost.exe exit code.
    2013-10-23 19:42:48, Info                  DISM   DismHostLib: Found dismhost.exe exit code.
    2013-10-23 19:42:48, Error                 DISM   DISM Manager: PID=4800 Failed to create Dism Image Session in host. - CDISMManager::LoadImageSession(hr:0xc0000135)
    2013-10-23 19:42:48, Warning               DISM   DISM Manager: PID=4800 A problem ocurred loading the image session. Retrying...  - CDISMManager::CreateImageSession(hr:0xc0000135)
    2013-10-23 19:43:51, Error                 DISM   DismHostLib: Failed to create DismHostManager remote object. Checking for dismhost.exe exit code.
    2013-10-23 19:43:51, Info                  DISM   DismHostLib: Found dismhost.exe exit code.
    2013-10-23 19:43:51, Error                 DISM   DISM Manager: PID=4800 Failed to create Dism Image Session in host. - CDISMManager::LoadImageSession(hr:0xc0000135)
    2013-10-23 19:43:51, Error                 DISM   DISM Manager: PID=4800 Failed to load the image session from the temporary location: C:\Users\CHAD_H~1\AppData\Local\Temp\5802FB89-45F6-4F0A-8E0A-CC6BAE14C8AA - CDISMManager::CreateImageSession(hr:0xc0000135)
    2013-10-23 19:43:51, Error                 DISM   DISM.EXE: Could not load the image session. HRESULT=C0000135
    2013-10-23 19:43:51, Error                 DISM   DISM.EXE: Unable to start the servicing process for the image at 'C:\Temp\x\mnt'. HRESULT=C0000135
    2013-10-23 19:43:51, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
    2013-10-23 19:43:51, Info                  DISM   DISM.EXE:
    2013-10-23 19:43:51, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
    2013-10-23 19:43:51, Info                  DISM   DISM.EXE:
    2013-10-23 19:43:51, Info                  DISM   DISM Image Session: PID=4800 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect
    2013-10-23 19:43:51, Info                  DISM   DISM Provider Store: PID=4800 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-10-23 19:43:51, Info                  DISM   DISM Provider Store: PID=4800 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-10-23 19:43:51, Info                  DISM   DISM Provider Store: PID=4800 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2013-10-23 19:43:51, Info                  DISM   DISM Provider Store: PID=4800 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider
    2013-10-23 19:43:51, Info                  DISM   DISM Provider Store: PID=4800 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider
    Thursday, October 24, 2013 12:50 AM

Answers

  • Was able to get it to work. Two things to consider. First make sure you are using the correct version of DISM, if it is from a disk or iso, make sure you specifically use that one. Secondly look at this http://social.technet.microsoft.com/Forums/en-US/ff8509ec-0ddd-4ad8-9e53-ecf527a80919/dismexe-is-failing-to-add-drivers-to-a-mounted-image-file?forum=w7itproinstall
    Friday, October 25, 2013 2:49 AM

All replies

  • I got the same thing when trying to add an HP driver to the install image with the same error code received.
    • Proposed as answer by GCC_CSS Tuesday, November 12, 2013 10:10 PM
    • Unproposed as answer by GCC_CSS Tuesday, November 12, 2013 10:10 PM
    Friday, October 25, 2013 2:26 AM
  • Was able to get it to work. Two things to consider. First make sure you are using the correct version of DISM, if it is from a disk or iso, make sure you specifically use that one. Secondly look at this http://social.technet.microsoft.com/Forums/en-US/ff8509ec-0ddd-4ad8-9e53-ecf527a80919/dismexe-is-failing-to-add-drivers-to-a-mounted-image-file?forum=w7itproinstall
    Friday, October 25, 2013 2:49 AM