Je Jin's DISM Tool

Discussion in 'Windows 7' started by Mr Jinje, Sep 14, 2009.

?

Were you able to create a recovery DVD with this tool ?

  1. Yes

    86 vote(s)
    39.6%
  2. No

    68 vote(s)
    31.3%
  3. WTF is a Recovery DVD ?

    63 vote(s)
    29.0%
  1. gamazet

    gamazet MDL Senior Member

    Sep 26, 2009
    279
    967
    10
    #161 gamazet, Jan 8, 2010
    Last edited by a moderator: Apr 20, 2017
    I have this error on "add packages":


    This is part with errors from DISM log:

    Code:
    CDISMProviderStore::GetProviderCollection
    2010-01-08 03:02:46, Error                 DISM   DISM Manager: PID=776 Failed to create unique image session lock name for DISM located at 'C:\mount\Windows\System32\Dism\dismprov.dll'. - CDISMManager::CheckSessionAndLock(hr:0x801f0005)
    2010-01-08 03:02:46, Error                 DISM   DISM Manager: PID=776 Failed to create the image session lock for location: C:\mount\Windows\System32\Dism - CDISMManager::CreateImageSession(hr:0x801f0005)
    2010-01-08 03:02:46, Error                 DISM   DISM.EXE: Could not load the image session. HRESULT=801F0005
    2010-01-08 03:02:46, Error                 DISM   DISM.EXE: Unable to start the servicing process for the image at 'C:\mount'. HRESULT=801F0005
    Could you please help! I couldn't find similar error in thread
     
  2. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,769
    1,106
    60
    #162 Mr Jinje, Jan 8, 2010
    Last edited by a moderator: May 23, 2017
    (OP)
  3. gamazet

    gamazet MDL Senior Member

    Sep 26, 2009
    279
    967
    10
    #163 gamazet, Jan 12, 2010
    Last edited by a moderator: Apr 20, 2017

    Can anybody answer to my question please?
    It happens on clean untouched Win 7 x32bit (refer to windows 7 repository) in Win 7 envronment. No Vlite or other tools used!
     
  4. Dxxx

    Dxxx MDL Novice

    Jan 13, 2010
    2
    0
    0
    Please excuse me for interrupting elevated discussion.
    I have no experience with this tool; I am trying to backup an existing legal OEM Win 7 installation (bloatware + partitions that were somehow custom and got totally blocked). I would like to restore activation on a disk so I can reinstall and have an legit activated system straight away.

    1. I got stucked with:
    "2) Press Integrate Cert, and choose you cert file"

    - would a .xm-ms file (2731 bytes) do? <it has been identically created with ABR and SlicDumpToolKit>. Or what is the solution?

    2. Would that work if initial install was x86 and I change it for x64?

    Thanks!
     
  5. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,769
    1,106
    60
    #167 Mr Jinje, Jan 14, 2010
    Last edited: Jan 14, 2010
    (OP)
    1) Yes, XRM-MS file is your CERT

    2) Yes, same cert for both x86/x64

    @Gamazet, no easy answer on that one, first guess is one of your CAB files got messed up during conversion ??? Remove half the cabs from your cab folder and see if you still get the error, then try the other half. Report back if it is impossible to integrate any cabs, even if they are alone.

    It is probably only one bad cab in the whole bunch, but if none of them will install, then problem could be in your Windows 7 DISM somehow - Reinstall Windows 7 or try it from a different machine.

    If that dont work, maybe instead of fumbling around with converting them to cab's, instead integrate them as MSU and change the explorer.exe afterwards. I'd try it at the setupcomplete.cmd stage, right before the first login. Same end result.

    Play around with it, Microsoft didn't document very much of this, so get creative, if you find a solution that might help someone else, post it.
     
  6. gamazet

    gamazet MDL Senior Member

    Sep 26, 2009
    279
    967
    10
    I am using George King hotfixes pack. I don't feel the problem is in them.
    Thanks for very good ideas. Will try and post if I get working result
     
  7. zaino

    zaino MDL Novice

    Jan 29, 2010
    6
    0
    0
    @ Mr Jinje's


    Thanks for putting together the GUI for dsim. just brilliant...

    I wanted to know the correct procedure to remove packages. 1, 2, 3, kinda thing...

    I tried several times but i get errors , i'm sure i'm not doing the right thing.

    Do you have a bit of time to write down a guided example for it?


    Please.

    Zaino.
     
  8. sibml

    sibml MDL Novice

    Mar 7, 2010
    1
    0
    0
    dism tool

    got the error message Dism does't recoganise the command ,it is not working...
    log file:
    3-07 21:51:30, Info DISM PID=1888 Scratch directory set to 'C:\Users\Explorer\AppData\Local\Temp\'. - CDISMManager::put_ScratchDir
    2010-03-07 21:51:30, Info DISM PID=1888 Successfully loaded the ImageSession at "C:\Windows\System32\Dism" - CDISMManager::LoadImageSession
    2010-03-07 21:51:30, Info DISM DISM Provider Store: PID=1888 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    2010-03-07 21:51:30, Info DISM DISM Provider Store: PID=1888 Failed to get and initialize the PE Provider. Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
    2010-03-07 21:51:30, Info DISM DISM Provider Store: PID=1888 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
    2010-03-07 21:51:30, Info DISM DISM Provider Store: PID=1888 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2010-03-07 21:51:30, Info DISM DISM Provider Store: PID=1888 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2010-03-07 21:51:30, Info DISM DISM Provider Store: PID=1888 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2010-03-07 21:51:30, Info DISM DISM Provider Store: PID=1888 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2010-03-07 21:51:30, Info DISM DISM Manager: PID=1888 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
    2010-03-07 21:51:30, Info DISM DISM Provider Store: PID=1888 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2010-03-07 21:51:30, Info DISM DISM Provider Store: PID=1888 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2010-03-07 21:51:30, Info DISM DISM.EXE:
    2010-03-07 21:51:30, Info DISM DISM.EXE: <----- Starting Dism.exe session ----->
    2010-03-07 21:51:30, Info DISM DISM.EXE:
    2010-03-07 21:51:30, Info DISM DISM.EXE: Host machine information: OS Version=6.1.7600, Running architecture=x86, Number of processors=2
    2010-03-07 21:51:30, Error DISM DISM.EXE: Failed validating command line: "C:\Windows\system32\Dism.exe" /Mount-Wim /wimfile:C:\Users\Explorer\Desktop\win 7\sources\install.wim /index:1 /MountDir:C:\Users\Explorer\Desktop\u
    2010-03-07 21:51:30, Info DISM DISM.EXE: Image session has been closed. Reboot required=no.
    2010-03-07 21:51:30, Info DISM DISM.EXE:
    2010-03-07 21:51:30, Info DISM DISM.EXE: <----- Ending Dism.exe session ----->
    2010-03-07 21:51:30, Info DISM DISM.EXE:
    2010-03-07 21:51:30, Info DISM DISM Image Session: PID=1888 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect
    2010-03-07 21:51:30, Info DISM DISM Provider Store: PID=1888 Found the OSServices. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2010-03-07 21:51:30, Info DISM DISM Provider Store: PID=1888 Releasing the local reference to DISMLogger. Stop logging. - CDISMProviderStore::Internal_DisconnectProvider
     
  9. Dolorous Edd

    Dolorous Edd MDL Expert

    Aug 31, 2009
    1,054
    217
    60

    Yeah, it will never work with that little guy sticking his tounge out at you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    Remove the space in "win 7" to "win7". It throws an error if you have space in your folder path.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,769
    1,106
    60
    #173 Mr Jinje, May 7, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Just some news for future readers, we had another user at another forum who received this error, and they found the cause to be a ghost 15 service that was running in the background. So in case any of you come across this error, DISM "HRESULT=801F0005", open services.msc and stop the service temporarily and it should work.

    If you get the error and are not a Ghost user, report back, it might not be Ghost in particular, but maybe it is how certain imaging drivers access open files (keep eyes peeled Acronis/Macrium users)
     
  12. throbber

    throbber MDL Addicted

    Mar 13, 2008
    585
    32
    30
    Mr Jinje.........can you empty your in box
     
  13. rforster

    rforster MDL Novice

    Jul 8, 2010
    2
    0
    0
    #175 rforster, Jul 8, 2010
    Last edited: Jul 8, 2010
    Help ! :(

    gave up trying to insert drivers into a .wim thought the cmd pmt so found your tool, running it on win xp but have DISM folder from a 32bit WIN 7 in my system 32 folder, i get this error when trying to mount the WIM right at the start wat am i doing wrong o_O

    PS C:\> DISM.exe /Mount-Wim /wimfile:C:\Image\boot.wim /index:1 /MountDir:C:\Mou
    nt
    The term 'DISM.exe' is not recognized as a cmdlet, function, operable program,
    or script file. Verify the term and try again.
    At line:1 char:9
    + DISM.exe <<<< /Mount-Wim /wimfile:C:\Image\boot.wim /index:1 /MountDir:C:\Mo
    unt
    PS C:\>

    Works fine when i run on a W7 machine why wont it work on my xp machine ?

    you got a gui to make the bootable image as well instead of having to do it all through the command prompt
    like follwing this?
    technet.microsoft.com/en-us/library/cc709665(WS.10).aspx
    still would like to no why it wouldnt work on xp as well please
     
  14. tomorrow

    tomorrow MDL Addicted

    Jul 3, 2008
    722
    263
    30
    Because XP does not contain DISM.
     
  15. rforster

    rforster MDL Novice

    Jul 8, 2010
    2
    0
    0
    yea but i had DISM on xp the 32bit and it seemed fine but still wouldnt work, next issue now is there a gui way of making the PE Image?
     
  16. Woota?!

    Woota?! MDL Novice

    Apr 2, 2010
    20
    1
    0
    Very, very nice! You're a legend, cheers.

    T/C
     
  17. bradyholt

    bradyholt MDL Novice

    Jul 24, 2009
    2
    0
    0
    3 Questions using the Tool

    I have created a 11 in 1 installer where I combined all the editions both 32 and 64 bit in one wim.

    1. If I want to integrate drivers do I need to do each individual individual install index (1 though 11) and select the 32bit drivers for the 32 bit install indexes and 64 for 64 or can I just do it once with both 32 bit and 64 bit drivers?
    2. Same question except for KB patches
    3. How do I integrate .NET frameworks.
     
  18. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,634
    1,654
    150
    well you can have xml file lookin for driverfolder and install them.. otherwise, yes you have to integrate drivers to all images. Same with windows updates.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...