Windows Integration Guide - murphy78

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

  1. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,418
    11,684
    240
    wsim runs dism commands via answer files.
    It runs them all at once, which is akin to running dism /add-package pointed at a single folder full of msu or cab files.
    While it is faster to point it at a whole folder, it presents the esd recovery compression problem discussed many times here in this thread.
     
  2. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,418
    11,684
    240
    I honestly couldn't tell you which one is faster. In my experience, they have been roughly the same speed.
    I don't think you'd really know the full speed difference unless you had a very high speed source and target drive.
    My limited experiences with 30-50 MB/s source drives and 100ish MB/s write speed target drives pretty much max out at the write speed, considering all the file system overhead and small files involved.

    If you had a really high speed usb3 source drive and a sataIII SSD target drive, you could probably paint a more accurate picture.
     
  3. erbia

    erbia MDL Novice

    Dec 5, 2009
    29
    11
    0
    How integrate Office 2013 in Windows 8.1?
    When a Windows 8.1 with update aio to office?
     
  4. ar_seven_am

    ar_seven_am MDL Senior Member

    Mar 7, 2010
    398
    129
    10
    I dont have problem integrate some update with wsim and after that compress the image with esd recovery format, could u more specific explain the problem or referring to the post so I can read that? thx in advance
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,418
    11,684
    240
    It's difficult to explain.
    The problem seems to occur when servicing many different indexes in an AIO.
    doing a resetbase command on the non-pending updates seems to cause a problem
    integrating a lot of updates also seems to cause a problem.

    What happens is boot setup will get to about 85~ percent and then give an install failure.
    I've noticed it since win8.1 came out and we were able to export to esd
    It doesn't happen every time. In fact, it can be either very rare or very common.

    Integrating hotfixes one at a time seems to reduce or eliminate this problem.
    I've had a few different ideas at how to fix the issue over the last few months, though.
    Firstly, I thought that limiting boot ram helped, but I think it only reduced the likelihood a little.
    So I just stopped doing that and started trying to go after the cause instead of the symptom.

    If you don't experience the problem, then I'm glad for you.
    It's really frustrating.
     
  6. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,418
    11,684
    240
    I have been playing with minimizing win8.1 images.
    I've been trying ways of reducing the image without breaking things.

    Firstly, the non-invasive methods:
    Removing provisionedappxpackages
    disable-feature /remove certain features

    This method works, but doesn't reduce the image by much and doesn't speed up the OS at all.

    So that just leaves the invasive methods that will break system files.
    The two largest additions are windows recovery environment (winre.wim) and language files.
    On the language files thing, Windows likes to store tons of localized files for all the various system programs regardless of the language pack you have installed.
    Using winreducer you can remove both of these things and also the control panel shortcuts and files for language changing.

    That being said, it doesn't speed up your system. Removing files makes more room, but since the files are never loaded in the first place, there's no performance increase.
    So to improve performance, there's really only a few options.
    You can disable Windows Defender and Windows Search Indexing service.
    You can also disable the security center service that monitors that stuff and nags you via the taskbar.

    Changing these things would improve performance, but it's nothing that you cannot do by simply disabling defender in the GUI and setting the search indexer to disable in services.msc
    Again, removing the files only saves a little room, it's stopping the running files that improves performance.

    So my verdict on 8.1 minimizing is that if its done, it should only be done because of space constraints. It causes way more problems than benefits gained.
    Also, when you tinker around with the system settings with these methods, the superfetch has to re-calibrate itself or whatever...
    I don't know exactly how to describe it. Your system is actually slower during setup after minimizing because the system is going through a hissy-fit trying to figure out what's damaged.

    You can also store the acl information on the winsxs folder and then compress the files with compact.exe, but it would actually slow down your performance a little by needing to decompress the files each time they are loaded.
    I'm not gonna elaborate on how to do that because it's a terrible idea and I wouldn't want people to try it.
     
  7. Hvam

    Hvam MDL Novice

    May 22, 2014
    20
    37
    0
    #487 Hvam, Jun 1, 2014
    Last edited: Jun 1, 2014
    Thanks for a useful thread. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Hvam

    Hvam MDL Novice

    May 22, 2014
    20
    37
    0
    #488 Hvam, Jun 1, 2014
    Last edited by a moderator: Apr 20, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,418
    11,684
    240
    #489 murphy78, Jun 2, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
  10. Hvam

    Hvam MDL Novice

    May 22, 2014
    20
    37
    0
    #490 Hvam, Jun 2, 2014
    Last edited by a moderator: Apr 20, 2017
    Thank You it worked fine with method 1.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. kabino

    kabino MDL Member

    Nov 13, 2013
    175
    634
    10
    hello
    i created a session with sysprep (vmware) and windows 8.1 update 1 but windows update doesn't find any updates. Without sysprep works perfectly. How can fix this problem?
     
  12. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    3,302
    1,936
    120
    No fix you can't download updates in audit mode
     
  13. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,007
    955
    90
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,418
    11,684
    240
    #495 murphy78, Jun 2, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Typical scenario I do when sysprepping 8.x is create user and let it finish install
    Then I install a few things like directx, netfx3, vc++ redists.
    Then I run wuapp.exe and install updates and reboot and repeat the process until no longer needing any updates.
    Then i run %windir%\system32\sysprep\sysprep.exe /audit /reboot
    When in audit mode, go into control panel and delete the temp account.
    Then you sysprep /oobe /shutdown using the sysprep tool that's always started when in audit mode.

    Then you capture it with a config.ini that eliminates both your temporary user account directory, administrator directory, and the softwaredistribution directory.

    Anyway, to run ps1 scripts, you just set execution policy to remotesigned (only runs scripts from your own system if unsigned)
    Then you run the appropriate script with powershell.
    Typical cmd script to do this would be like:
    Code:
    powershell Set-ExecutionPolicy RemoteSigned
    powershell %TEMP%\PSR.ps1
    Obviously change the path and such to match the scripts you wish to use and run the script as admin.
    Remember your pushd command because running as admin will change your current directory to system32 automatically unless pushd "%~dp0" is specified.
     
  15. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Yep, script is working and part of my JATD script for quite a while now :cool2:. Works like a charm in Audit Mode :good3:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. kastrel

    kastrel MDL Member

    Mar 7, 2013
    247
    52
    10
    Slave77,really works? WU works in auditory mode using that scripts?Please you could me send this script for me down?Thanks:worthy:
     
  17. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. JohnyGS

    JohnyGS MDL Member

    Apr 11, 2014
    100
    23
    10
    #499 JohnyGS, Jun 9, 2014
    Last edited by a moderator: Apr 20, 2017
    @murphy78 If possible I want to ask you something, for example: I do a snapshot of the windows through a virtual machine, creating a custom iso only with integrated updates, but even I using an ESD iso and it is capturing the install.esd the same size of a install.wim with the same procedure.

    The command used for this capture is this:

    Code:
    cd sysprep
    sysprep
    dism /online /cleanup-image /startcomponentcleanup
    sysdm.cpl
    lusrmgr
    cleanmgr
    dism /capture-image /imagefile:<local which will save> /capturedir:<drive letter the VHD> /name:<description> /compress:max

    To some command that I can use so you can decrease the size of install.esd?
     
  19. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    #500 s1ave77, Jun 9, 2014
    Last edited by a moderator: Apr 20, 2017
    To my knowledge you can only capture as WIM file with these commands. Even if you name it ESD it's still a WIM file. You can convert the WIM to ESD afterwards.
    Code:
    dism /Export-Image /SourceImageFile:"path\to\install.wim" /SourceIndex:1 /DestinationImageFile:"path\to\new\install.esd" /Compress:recovery 
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...