MSMG ToolKit

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

  1. graver.x

    graver.x MDL Member

    Jan 18, 2020
    111
    168
    10
    #17901 graver.x, Dec 22, 2020
    Last edited: Dec 22, 2020
  2. graver.x

    graver.x MDL Member

    Jan 18, 2020
    111
    168
    10
    #17902 graver.x, Dec 22, 2020
    Last edited: Dec 22, 2020
    MSMG, is it possible in the Toolkit to manually adjust the compression ratio at your own discretion when converting WIM to ESD?
    It would be good for me to reduce it a little, since I do this work on a not too powerful PC.
    I tried it a long time ago, it loads the processor a lot, and it's a very long process.
    I usually did this in NTLite at the final stage, there in settings.xml the default value is set to: <WimCompression>2</WimCompression>, this is optimal for my PC.
    ____________________

    The reason for many failures in the past... :D I can't help but thank you for your foresight!
    "[HKEY_LOCAL_MACHINE\SOFTWARE" = "[HKEY_LOCAL_MACHINE\TK_SOFTWARE";
    "[-HKEY_LOCAL_MACHINE\SOFTWARE" = "[-HKEY_LOCAL_MACHINE\TK_SOFTWARE";
    "[HKEY_CLASSES_ROOT" = "[HKEY_LOCAL_MACHINE\TK_SOFTWARE\Classes";
    "[-HKEY_CLASSES_ROOT" = "[-HKEY_LOCAL_MACHINE\TK_SOFTWARE\Classes";
    "[HKEY_LOCAL_MACHINE\SYSTEM" = "[HKEY_LOCAL_MACHINE\TK_SYSTEM";
    "[-HKEY_LOCAL_MACHINE\SYSTEM" = "[-HKEY_LOCAL_MACHINE\TK_SYSTEM";
    "[HKEY_LOCAL_MACHINE\TK_SYSTEM\CurrentControlSet\" = "[HKEY_LOCAL_MACHINE\TK_SYSTEM\ControlSet001\";
    "[-HKEY_LOCAL_MACHINE\TK_SYSTEM\CurrentControlSet\" = "[-HKEY_LOCAL_MACHINE\TK_SYSTEM\ControlSet001\";
    "[HKEY_CURRENT_USER" = "[HKEY_LOCAL_MACHINE\TK_NTUSER";
    "[-HKEY_CURRENT_USER" = "[-HKEY_LOCAL_MACHINE\TK_NTUSER";
    "[HKEY_USERS\.Default" = "[HKEY_LOCAL_MACHINE\TK_DEFAULT";
    "[-HKEY_USERS\.Default" = "[-HKEY_LOCAL_MACHINE\TK_DEFAULT"}
     
  3. BT 1

    BT 1 MDL Junior Member

    Feb 16, 2017
    65
    6
    0
    Is it still so that one has to remove with package list instead of item by item or all at once?
     
  4. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    The toolkit uses DISM for WIM<->ESD conversions and the available switches are

    fast
    max
    none
    recovery

    For WIM I do use the max and for ESD do use the recovery.

    I don't know what the NTLite uses internally, does it uses the DISM or the Wimlib-imagex for exporting the indexes.

     
  5. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
  6. Igor147

    Igor147 MDL Member

    Oct 20, 2016
    107
    47
    10
    @MSMG
    Should this also be integrated with the new Edge?
    2020-12-22 18.12.35 mega.nz 6544fa0ecddb.png
     
  7. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    #17907 MSMG, Dec 22, 2020
    Last edited: Dec 22, 2020
    (OP)
    Yes you need to integrate it as it provides the localization for Edge Chromium policy settings

     
  8. graver.x

    graver.x MDL Member

    Jan 18, 2020
    111
    168
    10
  9. bou7a

    bou7a MDL Junior Member

    Aug 6, 2018
    85
    70
    0
    @MSMG

    I have one question.
    It's safe to remove Registry hive leftovers?
    Files like this:

    Code:
    : For ntuser.dat Hive
    C:\Users\bou7a\NTUSER.DAT.LOG1
    C:\Users\bou7a\NTUSER.DAT.LOG2
    C:\Users\bou7a\NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TM.blf
    C:\Users\bou7a\NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms
    C:\Users\bou7a\NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms
    
    : For BBI Hive
    C:\Windows\System32\config\BBI.LOG1
    C:\Windows\System32\config\BBI.LOG2
    C:\Windows\System32\config\BBI{53b39ea0-18c4-11ea-a811-000d3aa4692b}.TM.blf
    C:\Windows\System32\config\BBI{53b39ea0-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms
    C:\Windows\System32\config\BBI{53b39ea0-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms
    
    : For COMPONENTS Hive
    C:\Windows\System32\config\COMPONENTS.LOG1
    C:\Windows\System32\config\COMPONENTS.LOG2
    C:\Windows\System32\config\COMPONENTS{53b39e63-18c4-11ea-a811-000d3aa4692b}.TM.blf
    C:\Windows\System32\config\COMPONENTS{53b39e63-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms
    C:\Windows\System32\config\COMPONENTS{53b39e63-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms
    
    : For DEFAULT Hive
    C:\Windows\System32\config\DEFAULT.LOG1
    C:\Windows\System32\config\DEFAULT.LOG2
    C:\Windows\System32\config\DEFAULT{53b39e7c-18c4-11ea-a811-000d3aa4692b}.TM.blf
    C:\Windows\System32\config\DEFAULT{53b39e7c-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms
    C:\Windows\System32\config\DEFAULT{53b39e7c-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms
    
    :For DRIVERS Hive
    C:\Windows\System32\config\DRIVERS.LOG1
    C:\Windows\System32\config\DRIVERS.LOG2
    C:\Windows\System32\config\DRIVERS{53b39e70-18c4-11ea-a811-000d3aa4692b}.TM.blf
    C:\Windows\System32\config\DRIVERS{53b39e70-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms
    C:\Windows\System32\config\DRIVERS{53b39e70-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms
    
    : For ELAM Hive
    C:\Windows\System32\config\ELAM.LOG1
    C:\Windows\System32\config\ELAM.LOG2
    
    : For SAM Hive
    C:\Windows\System32\config\SAM.LOG1
    C:\Windows\System32\config\SAM.LOG2
    C:\Windows\System32\config\SAM{53b39e57-18c4-11ea-a811-000d3aa4692b}.TM.blf
    C:\Windows\System32\config\SAM{53b39e57-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms
    C:\Windows\System32\config\SAM{53b39e57-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms
    
    : For SECURITY Hive
    C:\Windows\System32\config\SECURITY.LOG1
    C:\Windows\System32\config\SECURITY.LOG2
    C:\Windows\System32\config\SECURITY{53b39e4b-18c4-11ea-a811-000d3aa4692b}.TM.blf
    C:\Windows\System32\config\SECURITY{53b39e4b-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms
    C:\Windows\System32\config\SECURITY{53b39e4b-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms
    
    : For SOFTWARE Hive
    C:\Windows\System32\config\SOFTWARE.LOG1
    C:\Windows\System32\config\SOFTWARE.LOG2
    C:\Windows\System32\config\SOFTWARE{53b39e2f-18c4-11ea-a811-000d3aa4692b}.TM.blf
    C:\Windows\System32\config\SOFTWARE{53b39e2f-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms
    C:\Windows\System32\config\SOFTWARE{53b39e2f-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms
    
    : For SYSTEM Hive
    C:\Windows\System32\config\SYSTEM.LOG1
    C:\Windows\System32\config\SYSTEM.LOG2
    C:\Windows\System32\config\SYSTEM{53b39e3e-18c4-11ea-a811-000d3aa4692b}.TM.blf
    C:\Windows\System32\config\SYSTEM{53b39e3e-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms
    C:\Windows\System32\config\SYSTEM{53b39e3e-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms
    
    It's possible to remove these files or it's danger in remove.
    Thanks Advance.

    sorry for my bad English, I'm using google translate
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. bou7a

    bou7a MDL Junior Member

    Aug 6, 2018
    85
    70
    0
    Hello, @MSMG

    Here some mistakes typo:

    In line 11357 :
    Code:
    goto :IntDaRTBoot
    This labeled section is not found in Toolkit.cmd


    In line 18770 :
    Code:
    Code:
    if exist "%BootMount%\%%i\Windows\WinSxS\Backup\*.*" del /f /q "%InstallMount%\Windows\WinSxS\Backup\*.*" >nul 2>&1
    Should be:
    Code:
    if exist "%BootMount%\%%i\Windows\WinSxS\Backup\*.*" del /f /q "%BootMount%\%%i\Windows\WinSxS\Backup\*.*" >nul 2>&1

    In line 21166 :
    Code:
    Code:
    ImageIndexNo=Enter the WIM Image Index # ['Q'uit] : 
    Should be:
    Code:
    set /p ImageIndexNo=Enter the WIM Image Index # ['Q'uit] : 

    sorry for my bad English, I'm using google translate
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. kompassorpigo

    kompassorpigo MDL Junior Member

    Jun 22, 2016
    84
    14
    0
    #17912 kompassorpigo, Dec 23, 2020
    Last edited: Dec 23, 2020
    By updates, do you mean any updates under the Windows Update section (like definition updates, .NET updates, monthly cumulative updates etc.) or only the major feature updates (like 1809, 2004, 2009)?
     
  12. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    For offline images these can be removed since they are used as recovery points on live systems.

     
  13. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    Fixed.

     
  14. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    Monthly cumulative updates

     
  15. ingviowarr

    ingviowarr MDL Senior Member

    Dec 14, 2009
    314
    270
    10
    May be is not a bad idea include this into the cleanup scenario as a additional (hidden) step(s) that help to produce an image more clean?
    I beleive all such cleanings should help to reduce "user fingerprint" and improve privacy a little bit (do not save such data on disk forever for M$).
    I like every smallest step that help us to survive in the era of privacy leaks.
     
  16. spidernz

    spidernz MDL Senior Member

    May 20, 2011
    371
    103
    10
    I was thinking we could make a separate open script that deals with empty folders and obsolete files for cleanup
     
  17. kompassorpigo

    kompassorpigo MDL Junior Member

    Jun 22, 2016
    84
    14
    0
    Gotcha. Is there a list of specific components that come back or is it a random set every time?
     
  18. ingviowarr

    ingviowarr MDL Senior Member

    Dec 14, 2009
    314
    270
    10
    Well, why not? But I thought about non-urgent collecting of the most sensitive cleanups with time flow inside the bundle (as a solid/approved/safe part of the bundle).

    1. The most important thing for me is that all such initiatives must be approved by our own expert - @MSMG.
    Here I trust his decision: is it a good idea to make such edits for the image or not. Do not brake things - is a priority.
    Also I don't want to bother @MSMG unnecessarily, because he busy within much more important things (I'm expecting a new cool things in the near future).

    2. I have my own CMD (still W.I.P.) for cleaning AFTER Windows installation.
    But I'm not an expert in prepearing of images. So, here I fully rely on our favorite bundle and his creator.
     
  19. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    With Windows v1903 and above the Microsoft introduced a new update package format which will restore the removed components upon updating the system.

    Almost all components do get restored either in full or part, only Windows Apps are not affected since it gets updated through store.

    Window Store and Xbox which have backend files do get restored by Cumulative update.