MSMG ToolKit

Discussion in 'MDL Projects and Applications' started by MSMG, Nov 21, 2013.

  1. chblock

    chblock MDL Member

    Jan 9, 2017
    159
    72
    10
    Got rid of the "file not found" problem with component cleanup, but now I'm getting some weirdness. When component cleanup runs the second time (after component removal) it only runs to twenty percent then says it completed successfully. Makes no difference in the size of the final image whether I run component cleanup a second time or not. Output below;
    Code:
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.17763.253
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    One note, I'm not using the /ResetBase switch because I found it doesn't make much difference in the final size of the image and it disables the Reset Windows feature.

    Script below for ref;

    Code:
    dism /mount-wim /wimfile:d:\temp\install.wim /index:1 /mountdir:d:\temp\wim_offline
    dism /image:d:\temp\wim_offline /add-driver /driver:d:\home\comp\software\win10\build\drivers /recurse
    dism /image:d:\temp\wim_offline /add-package /packagepath:d:\home\comp\software\win10\updates\kb4470788_serv_stack_12-05-18_1809-x64.msu
    dism /image:d:\temp\wim_offline /add-package /packagepath:d:\home\comp\software\win10\updates\kb4480116_cumulative_01-08-19_1809-x64.msu
    dism /image:d:\temp\wim_offline /cleanup-image /startcomponentcleanup
    
    toolkithelper d:\temp\wim_offline AADBrokerPlugin
    toolkithelper d:\temp\wim_offline AssignedAccessLockApp
    toolkithelper d:\temp\wim_offline BioEnrollment
    toolkithelper d:\temp\wim_offline ContentDeliveryManager
    toolkithelper d:\temp\wim_offline Cortana
    toolkithelper d:\temp\wim_offline EdgeDevToolsClient
    toolkithelper d:\temp\wim_offline LockApp
    toolkithelper d:\temp\wim_offline MapControl
    toolkithelper d:\temp\wim_offline ParentalControls
    toolkithelper d:\temp\wim_offline PeopleExperienceHost
    toolkithelper d:\temp\wim_offline QuickAssist
    toolkithelper d:\temp\wim_offline RetailDemoContent
    toolkithelper d:\temp\wim_offline SettingSync
    toolkithelper d:\temp\wim_offline SkypeORTC
    toolkithelper d:\temp\wim_offline SmartScreen
    toolkithelper d:\temp\wim_offline WindowsDefender
    toolkithelper d:\temp\wim_offline WindowsMixedReality
    toolkithelper d:\temp\wim_offline WindowsReaderPDF
    toolkithelper d:\temp\wim_offline XboxApp
    toolkithelper d:\temp\wim_offline XboxGameCallableUI
    
    toolkithelper d:\temp\wim_offline AdobeFlashForWindows
    toolkithelper d:\temp\wim_offline AssignedAccess
    toolkithelper d:\temp\wim_offline CEIP_SQM
    toolkithelper d:\temp\wim_offline DeviceLockdown
    toolkithelper d:\temp\wim_offline EaseOfAccessThemes
    toolkithelper d:\temp\wim_offline FirstLogonAnimation
    toolkithelper d:\temp\wim_offline HomeGroup
    ::toolkithelper d:\temp\wim_offline InternetExplorer
    toolkithelper d:\temp\wim_offline KernelDebugging
    toolkithelper d:\temp\wim_offline MultiPointConnector
    toolkithelper d:\temp\wim_offline RemoteAssistance
    toolkithelper d:\temp\wim_offline SnippingTool
    toolkithelper d:\temp\wim_offline UnifiedTelemetryClient
    toolkithelper d:\temp\wim_offline WindowsErrorReporting
    toolkithelper d:\temp\wim_offline WindowsPhotoViewer
    toolkithelper d:\temp\wim_offline WindowsSubsystemForLinux
    toolkithelper d:\temp\wim_offline WindowsToGo
    toolkithelper d:\temp\wim_offline WinSAT
    
    dism /image:d:\temp\wim_offline /cleanup-image /startcomponentcleanup
    dism /image:d:\temp\wim_offline /enable-feature /featurename:netfx3 /source:e:\sources\sxs
    dism /unmount-wim /mountdir:d:\temp\wim_offline /commit
    
     
  2. THUMPer1

    THUMPer1 MDL Novice

    Mar 8, 2011
    23
    6
    0
    I have the same issue.
     
  3. sonnet

    sonnet MDL Novice

    Aug 23, 2007
    5
    0
    0
    I've tried version 9.1 with RS4 image and when I select option 4 (Remove), it doesn't show me options to remove stuff but rather gives me the same options I'd get if I press 5.
    Anyone elese get this issue?
    I wasn't getting this issue with version 8.8
     
  4. AsaadSoft

    AsaadSoft MDL Member

    Jul 29, 2015
    193
    60
    10
    after installing the OS, is it necessery to run

    DISM / Online / Cleanup-Image / StartComponentCleanup / ResetBase
    ??

    what does this command do ? and why should one run it ?
    what if one didn't ??
     
  5. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    2,692
    6,293
    90
    Microsoft.Services.Store.Engagement is a dependency pack required for SolitaireCollection but not for Store.

    The ToolKit installs these dependency files by default for all components along with AdverstingXaml, VC Framework and VC Runtimes

    Right now I have tested with Client editions only, need to check for Server.

     
  6. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    2,692
    6,293
    90
    Yes it will take time if there are updates integrated.

     
  7. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    2,692
    6,293
    90
    StickyNotes requires Store App to function and In the current version I have put a check to retain the shared files if the store is removed.

    Will again test the feature.

     
  8. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    2,692
    6,293
    90
    That's normal to show 20% when you are doing the cleanup for the second time.

    Using /ResetBase will not completely remove the superseded components for that you need to use the below tweak which will breaks the Reset PC function.

    Code:
    Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration" /v "DisableResetbase" /t REG_DWORD /d "0"
    
     
  9. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    2,692
    6,293
    90
    Use v8.8 for W7-W10 RS4 component removal.

     
  10. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    2,692
    6,293
    90
    Use /StartComponentCleanup to clean up the superseded components and reduce the size of the component store.

    Use /ResetBase to reset the base of superseded components, which can further reduce the component store size.

     
  11. sixor

    sixor MDL Novice

    Feb 2, 2013
    21
    6
    0

    msmsg said some time ago we should remove all crap, then apply win updates, i dont understand

    this is what i always do with no issues

    APPLY UPDATE
    APPLY CHANGES, REMOUNT SOURCE
    REMOVE ALL CRAP
    APPLY CHANGES
    REMOVE OTHER VERSIONS EDU N ETC
    CREATE ISO
     
  12. jinvidia

    jinvidia MDL Junior Member

    Aug 7, 2016
    98
    11
    0
    @MSMG Sir, I follow this method for Win10 RS5 LTSC x64 as instructed by your goodself, but while performing "Cleanup source image" step, I get only 20% complete. Is this normal ? Thanks.

    (1) Extract ISO to DVD folder
    (2) Select Source Image from DVD folder
    (3) Integrate DirectX 9.0C
    (4) Cleanup the Source Image
    (5) Remove all desired Windows Apps & Components
    (6) Customize
    (7) Cleanup the Source Image
    (8) Integrate Microsoft .NET Framework 3.5 Feature
    (9) Apply & Save Changes to Source Images
    (10) Re-Build Source Images
    (11) Convert WIM image to ESD image
    (12) Create the ISO
     
  13. epicboy

    epicboy MDL Novice

    Jan 12, 2019
    1
    1
    0
    Love this! Would have loved for the remove section to allow us to input more than one character at a time, because it is slow and tedious to always get sent back to root. Would have loved to input for example "A,B,D,G....etc"!
     
  14. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    18,533
    24,073
    340
    As long as the message "...successfully..." appears under the bars, it's ok.

    And it doesn't perform much after integrating dx9c, that won't superseed any components that can be delta compressed. Just once at the end, is enough, and only when nothing has set the pending flag (in your scenario right before enabling dotnetfx3).
     
  15. ffs_

    ffs_ MDL Junior Member

    Sep 17, 2016
    55
    27
    0
    Installed OS on 2 computers and forget to do this on both of them. :D Should I do this now anyway, even after I installed and configured a lot of programs already?
     
  16. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    18,533
    24,073
    340
    Yes you can, it will delta compress all superseded components and decrease the footprint of the installed windows. The amount of the decrease in size will be depending on the amount of superseded components.

    Run in an elevated cmd:
    Code:
    Dism /Online /Cleanup-Image /StartComponentCleanup
     
  17. fedewt

    fedewt MDL Junior Member

    Jan 23, 2011
    60
    26
    0
    I did use toolkit 8.x for win8.1 and work very well.
    I need to use it, suppose ver 9.x, for include updates in windows server 2019, but immediately after chose "source" and indexes toolkit app crash.
    Maybe do not support windows server?
     
  18. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    2,692
    6,293
    90
    That's because of the '(' ')' in the Windows Server Image Name/Description the ToolKit gets terminated.

     
  19. shyamsundarsoni

    shyamsundarsoni MDL Novice

    Jan 15, 2012
    5
    6
    0
    The command
    Code:
    ........ del /f /q rd /q /s ........
    have 4 occurrences at line no. at 20146, 20160, 20176, 20189 under
    section, are not working as expected because the rd command becoming parameter to del command which tries to delete rd as file and gives could not find ........\rd error if /q parameter is removed.

    Do we need to remove all files as well as folder inside
    folder?
     
  20. jinvidia

    jinvidia MDL Junior Member

    Aug 7, 2016
    98
    11
    0
    Brother, Did you try using version 8.9 for Windows 8.1 ?