Windows Integration Guide - murphy78

Discussion in 'Windows 8' started by murphy78, Sep 5, 2013.

  1. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,787
    10,381
    210
    #1 murphy78, Sep 5, 2013
    Last edited by a moderator: Apr 20, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,787
    10,381
    210
    #2 murphy78, Sep 5, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,085
    60
    #4 Mr Jinje, Sep 5, 2013
    Last edited: Sep 5, 2013
    Good write-up. Wanted to mention that when deleting files from the mounted wim, some readers don't know they will need to take ownership and add permissions (icacls) before many things can be deleted (system files usually). The limitations are pretty easy to script around.

    as for DISM specifics, we can also enable/disable features (netFX), set time zone, and a bunch of other stuff. If you want I can track down some more scripts.

    EDIT: We used to have a pre-activation kit that automated the entire process from untouched ISO to fully custom image, but it was W7 specific. Still most of the DISM aspects of the script are W8 compatible.
     
  4. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,787
    10,381
    210
    Thanks guys. I'll probably cover advanced topics such as wim splitting, permissions, set-edition, etc in the 2nd post if there's enough interest from people in this thread.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Alphawaves

    Alphawaves Super Moderator/Developer
    Staff Member

    Aug 11, 2008
    5,886
    20,244
    180
    Nice.. maybe add ability to add LDR versions for updates integration ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Gmas79

    Gmas79 MDL Novice

    Jan 16, 2012
    26
    11
    0
    #7 Gmas79, Sep 5, 2013
    Last edited by a moderator: Apr 20, 2017
    Nice basic tutorial.
    Using OSCDIMG for creating bootable iso image is too much trouble for nothing. Especially for first timers.
    In untouched iso just replace your customized wim image with install.wim of sources folder.
    Its not recommended. But if someone want to remove unneeded metro applications from offline image (Windows 8)
    Commands to use
    Code:
    dism /Image:D:/Dism/Mount /Get-ProvisionedAppxPackages
    Code:
    Dism /Image:D:\Dism\Mount /Remove-ProvisionedAppxPackage /PackageName:microsoft.bingfinance_1.2.0.135_x64__8wekyb3d8bbwe
    Pretty sure its working fine especially with older Windows images, but its already time to ditch
    GImageX for Dism.
    Offline customization options somewhat limited compared to online. In this area your guide have
    much room to grow. Using very flexible virtual mashines as reference PC or VHD boot for customization.
    CopyProfile.xml, merging images, applying large images using bootable Winpe.....
    Good luck.
     
  7. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,787
    10,381
    210
    I read a big long thread somewhere with a bunch of IT guys trying to remove all of the Appx packages and were having tons of problems.
    do you have any recommendations regarding removing appx packages gmas79? some dependencies or something that could be causing people issues?

    I've spent most of my integration time adding things to Windows, it'd be interesting to hear from people with a lot of experience in removing things.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,085
    60
    #9 Mr Jinje, Sep 5, 2013
    Last edited by a moderator: Apr 20, 2017
  9. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,524
    652
    60
    #10 Flipp3r, Sep 5, 2013
    Last edited by a moderator: Apr 20, 2017
    In your example your copying drivers to the mounted wim. You could just integrate them instead:
    Code:
    Dism /image:c:\mount /Add-Driver /driver:C:\Drivers.x64 /recurse /forceunsigned
     
  10. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,787
    10,381
    210
    It was a long time ago. I do know they changed the default apps for win8.1, so that would no longer be accurate... You could do the /Get-ProvisionedAppxPackages with a >file.txt to point the output at a file and copy paste the newer version numbers and names into your script. It could be that they were trying to remove-package them instead of remove-provisionedappxpackage
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,787
    10,381
    210
    #12 murphy78, Sep 5, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Yes I use that for offline integration for my win7 stuff without the /forceunsigned tag. I haven't ran into a situation where I needed to add unsigned drivers.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. rrohela

    rrohela MDL Expert

    Sep 1, 2009
    1,612
    1,405
    60
    #13 rrohela, Sep 5, 2013
    Last edited by a moderator: Apr 20, 2017
    Very nice tutorial....

    To save space after integration convert .WIM to .ESD.... tested on windows 8 & you need windows 8.1 to run this command..

    Code:
    dism /Export-Image /SourceImageFile:"d:\install.wim" /SourceIndex:1 /DestinationImageFile:"d:\install.esd" /Compress:recovery
     
  13. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,787
    10,381
    210
    #14 murphy78, Sep 5, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    HOLY CRAP I didn't know you could do that!
    I think I love you rrohela.
    I'm gonna go test that right now.
    I'm not seeing anything about /compress:recovery option. Is that new?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    2,131
    4,960
    90
  15. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,546
    15,328
    340
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,546
    15,328
    340
    #17 Tito, Sep 5, 2013
    Last edited: Sep 5, 2013
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,787
    10,381
    210
  18. FaiKee

    FaiKee Misinformation spreader

    Jul 24, 2009
    4,305
    5,797
    150
    #20 FaiKee, Sep 5, 2013
    Last edited by a moderator: Apr 20, 2017
    I believe for win8, if you save it to ESD, it's still a wim format, because DISM win8 is unable to open/mount a real esd., I don't know if DISM win8.1 can open ESD or not, no ESD on hand to test. :D Interesting thing is, win8 installer can read ESD.