1. gointern

    gointern MDL Novice

    Nov 15, 2011
    27
    5
    0
    Tried renaming, but got DISM errors. Then found ESD2CAB utility which converted and worked.
     
  2. 1kari

    1kari MDL Novice

    Oct 14, 2018
    19
    9
    0
    Somebody help me please! I modify Windows 19043.1023 image with Toolkit_v11.5.
    After that, windows mixed reality stops working and gives error 15-13.
    Wasted three days already.

    Edge
    InternetExplorer
    WindowsMediaPlayer
    UnifiedTelemetryClient
    Cortana
    OneDrive
    BingWeather
    DesktopAppInstaller
    GetHelp
    Getstarted
    3DViewer
    SolitaireCollection
    StickyNotes
    MixedRealityPortal
    OfficeHub
    OfficeOneNote
    Paint3D
    People
    PeopleExperienceHost
    ScreenSketch
    SkypeApp
    SkypeORTC
    WalletService
    VP9VideoExtensions
    WebMediaExtensions
    WebpImageExtension
    HEIFImageExtension
    Photos
    Alarms
    Calculator
    Camera
    CommunicationsApps
    FeedbackHub
    Maps
    SoundRecorder
    XboxApp
    XboxIdentityProvider
    YourPhone
    ZuneMusic
    ZuneVideo
     
  3. graver.x

    graver.x MDL Senior Member

    Jan 18, 2020
    349
    486
    10
    Toolkit v11.5 component removal module does not support build 19043.1023.

    Read Changelog.txt, supported build is 19043.985.

    And you should probably remove the MixedRealityPortal component from your list.
     
  4. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210
    The issue with integration of features or packs for 18363, 19042, 19043 builds has been fixed in the upcoming build.

     
  5. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210
    Did you integrate any packs with extension .tpk, I think some of the packs need to be redone as I found out that when capturing the files from live system the file/folder ACL is different from the original install.wim for program files, windows folders.

    I have remade the games pack with original file/folder ACL permissions as per the offline insall.wim image.

     
  6. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210
    How did you remove the services? did you loaded the offline image registry and then removed it, if yes then did you unload them before removing the components?

     
  7. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210
    Starting with 20H1 the MS released refreshed ESD/ISO do contain ghost SFC errors, use UUP source image which is clean.

     
  8. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210
    #19488 MSMG, Jun 4, 2021
    Last edited: Jun 4, 2021
    (OP)
    Microsoft News and To Do app are already added but it's only for 21H2 images.

    If you have the latest Edge Chromium cab file then you can replace the old one with the new one.

     
  9. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    768
    560
    30
    Yes, in fact I did integrate these packs:

    .Net Framework 5
    Win32calculator
    Powershell 7
    Dart in setup image
    Dart in recovery image
    DirectX 9.0c
    Games
    Sidebar

    I got the reported permission warnings on a couple of system folders.
    Please confirm if this is only an issue with the Games pack, or if the issue is with all packs?

    Cheers.
     
  10. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210
    No for some packs with the extension .tpk when I compared the ACL for Program Files, Program Files (x86), Windows folder or files inside them where different from the original offline image.

    The untouched offline image ACL for Program Files, Program Files (x86), Windows folder is NT Security: TrustedInstaller TrustedInstaller s: d:13 424

    The ACL for these Program Files, Program Files (x86), Windows can be restored to original but for other files/folders not present in the original untouched image we need to rename files/folders present in the original untouched image to match the items, then copy the ACL, copy the new items and then replace the ACL back.

    I did re-created the games pack as I have restored some of the games which where removed earlier due to same folder permission bug.

    Will check each pack if any file/folder needs any fix and update them.

    Both 19041.1 MSDN and UUP images are clean, the refreshed images are corrupt due to duplicate folder permissions and ghost SFC errors.

     
  11. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    768
    560
    30
    Currently I'm using the Games pack from mega, uploaded 14 august 2019. If there is a newer version maybe you haven't uploaded it yet.
    So I'll just wait until you check and update the packs, thanks again for your dedication.

    Cheers.
     
  12. kusosaito

    kusosaito MDL Junior Member

    Nov 14, 2018
    59
    6
    0
    hi, can you tell me how can i import in image drivers from newlest versions of win?
    i use LTSC, and i dont want to put inside all garbage updates, i want only new drivers (win/INF ; win/sys32/driver)
    where can i DL it for my LTSCx64-10.0.17763-JP?
    thank you
     
  13. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    Step 01: To provisionally fix this in the script, go to the IntDedup section and replace from this:
    Code:
    :: Setting Package Service Pack Build
    if "%SelectedSourceOS%" equ "w10" (
       if "%ImageBuild%" equ "10586" set "PackageServicePackBuild=0"
       if "%ImageBuild%" equ "14393" set "PackageServicePackBuild=0"
       if "%ImageBuild%" equ "15063" set "PackageServicePackBuild=0"
       if "%ImageBuild%" equ "16299" set "PackageServicePackBuild=15"
       if "%ImageBuild%" equ "17134" set "PackageServicePackBuild=1"
       if "%ImageBuild%" equ "17763" set "PackageServicePackBuild=1"
       if "%ImageBuild%" equ "18362" set "PackageServicePackBuild=1"
       if "%ImageBuild%" equ "18363" set "PackageServicePackBuild=1"
       if "%ImageBuild%" equ "19041" set "PackageServicePackBuild=1"
       if "%ImageBuild%" equ "19042" set "PackageServicePackBuild=1"
       if "%ImageBuild%" equ "19043" set "PackageServicePackBuild=1"
    )
    
    to

    Code:
    if "%ImageVersion:~0,-6%" equ "10.0" (
       if "%ImageBuild%" geq "18362" if "%ImageBuild%" leq "19043" (
           :: Get updated Image Information
           call :GetUpdatedImageInformation
       ) >nul
       :: Setting Package Build and Service Pack Build Version
       if "%ImageBuild%" leq "17763" set "PackageBuild=%ImageBuild%"
       if "%ImageBuild%" geq "18362" if "%ImageBuild%" leq "18363" set "PackageBuild=18362"
       if "%ImageBuild%" geq "19041" if "%ImageBuild%" leq "19043" set "PackageBuild=19041"
    )
    
    :: Setting Package Service Pack Build
    if "%SelectedSourceOS%" equ "w10" (
       if "%ImageBuild%" geq "10586" if "%ImageBuild%" leq "15063" set "PackageServicePackBuild=0"
       if "%ImageBuild%" equ "16299" set "PackageServicePackBuild=15"
       if "%ImageBuild%" geq "17134" if "%ImageBuild%" leq "19043" set "PackageServicePackBuild=1"
    )
    
    After this step 01 select until the end of the session ":IntDedup" and perform steps 02 and 03.

    Nete: Make replacements only on selection.

    Step 02:
    from
    Code:
    ~%ImageVersion%
    
    to
    Code:
    ~10.0.%PackageBuild%
    
    Step 03:
    from
    Code:
    10.0.%ImageBuild%
    
    to
    Code:
    10.0.%PackageBuild%
    
    @MSMG had already implemented this in another part of the code at the request of someone else, I went through the code identifying more places where it is possible to implement this improvement. Credits to Master MSMG.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    Oops, I'm a little late on this answer, heheeheh

    Now that I saw that you had already answered right below his question.

    I have to read through to the end and then come back to offer some help if I can and is still needed.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    300
    397
    10
    #19496 sergey130270, Jun 7, 2021
    Last edited: Jun 7, 2021
    Hi guys! Please help me write a command on how to disable a faulty WIM? We are talking about unsuccessful changes to the Windows image and then disconnecting it. Thank you.
    I have an example, but it doesn't always work:

    @echo off

    COLOR 1F
    TITLE Clean up script
    CLS

    set incorrectPath=0

    echo "%~dp0%" | findstr "(" >nul 2>&1
    if "%ERRORLEVEL%"=="0" set incorrectPath=1
    echo "%~dp0%" | findstr ")" >nul 2>&1
    if "%ERRORLEVEL%"=="0" set incorrectPath=1

    if not "%incorrectPath%"=="0" (
    ECHO.
    ECHO.
    ECHO ================================================================
    ECHO Please copy and run script from Desktop or another directory!
    ECHO ================================================================
    ECHO.
    PAUSE >NUL
    goto end
    )

    :: Setting Tools environment path variables
    If exist "%WinDir%\SysWOW64" (
    SET "Arch=x64"
    ) else (
    SET "Arch=x86"
    )

    set "PF=%ProgramFiles%"
    if not "%ProgramFiles(x86)%"=="" set "PF=%ProgramFiles(x86)%"

    ECHO.
    ECHO.
    ECHO ================================================================
    ECHO Unmounting mounted registry keys...
    ECHO ================================================================
    timeout /t 5 /NOBREAK >nul
    reg Unload HKLM\TK_COMPONENTS >nul 2>&1
    reg unload HKLM\TK_DEFAULT >nul 2>&1
    reg unload HKLM\TK_NTUSER >nul 2>&1
    reg unload HKLM\TK_SOFTWARE >nul 2>&1
    reg unload HKLM\TK_SYSTEM >nul 2>&1
    ECHO.
    ECHO Done!
    ECHO.

    ECHO.
    ECHO.
    ECHO ================================================================
    ECHO Unmounting mounted images...
    ECHO ================================================================
    ECHO.
    for /L %%i in (1, 1, 8) do (
    if exist "%~dp0mount\Windows\explorer.exe" (
    "%~dp0tools\%Arch%\DISM\dism.exe" /Unmount-Wim /MountDir:"%~dp0Mount\WinRE" /Discard
    "%~dp0tools\%Arch%\DISM\dism.exe" /Unmount-Wim /MountDir:"%~dp0mount" /Discard
    )
    )

    rd /s /q "%~dp0Mount\WinRE" >nul 2>&1
    rd /s /q "%~dp0mount" >nul 2>&1

    "%~dp0tools\%Arch%\DISM\dism.exe" /Cleanup-Mountpoints

    ECHO.
    ECHO.
    ECHO All done!
    ECHO.

    You can help?
     
  16. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    #19497 inTerActionVRI, Jun 8, 2021
    Last edited: Jun 8, 2021
    Code:
    @echo off
    
    COLOR 1F
    TITLE Clean up script
    CLS
    
    echo "%~dp0%" | findstr "(" >nul 2>&1
    if "%ERRORLEVEL%"=="0" set incorrectPath=1
    echo "%~dp0%" | findstr ")" >nul 2>&1
    if "%ERRORLEVEL%"=="0" set incorrectPath=1
    
    if defined incorrectPath (
    ECHO.
    ECHO.
    ECHO ================================================================
    ECHO Please copy and run script from Desktop or another directory!
    ECHO ================================================================
    ECHO.
    PAUSE >NUL
    goto end
    )
    
    :: Setting Tools environment path variables
    If exist "%WinDir%\SysWOW64" (
    SET "Arch=x64"
    SET "PF=%ProgramFiles(x86)%"
    ) else (
    SET "Arch=x86"
    SET "PF=%ProgramFiles%"
    )
    
    ECHO.
    ECHO.
    ECHO ================================================================
    ECHO Unmounting mounted registry keys...
    ECHO ================================================================
    timeout /t 5 /NOBREAK >nul
    reg Unload HKLM\TK_COMPONENTS >nul 2>&1
    reg unload HKLM\TK_DEFAULT >nul 2>&1
    reg unload HKLM\TK_NTUSER >nul 2>&1
    reg unload HKLM\TK_SOFTWARE >nul 2>&1
    reg unload HKLM\TK_SYSTEM >nul 2>&1
    ECHO.
    ECHO Done!
    ECHO.
    
    ECHO.
    ECHO.
    ECHO ================================================================
    ECHO Unmounting mounted images...
    ECHO ================================================================
    ECHO.
    for /L %%i in (1, 1, 8) do (
    if exist "%~dp0mount\%%i\Windows\explorer.exe" (
    "%~dp0tools\%Arch%\DISM\dism.exe" /Unmount-Wim /MountDir:"%~dp0Mount\%%i\WinRE" /Discard
    "%~dp0tools\%Arch%\DISM\dism.exe" /Unmount-Wim /MountDir:"%~dp0mount\%%i" /Discard
    )
    )
    
    "%~dp0tools\%Arch%\DISM\dism.exe" /Cleanup-Mountpoints
    
    for /L %%i in (1, 1, 8) do (
    rd /s /q "%~dp0Mount\%%i\WinRE" >nul 2>&1
    rd /s /q "%~dp0mount\%%i" >nul 2>&1
    )
    
    ECHO.
    ECHO.
    ECHO All done!
    ECHO.
    
    I made some small changes in the part of the ProgramFiles and at the beginning, if the value 1 is set, the variable will be defined, so it will go to the end.
    I made the assumption that there is an index number for each mount point. So %%i were missing from the mount paths for "for" to run correctly.

    Note: maybe the registry unmount has to be inside the for loop for each index too.

    Code:
    @echo off
    
    COLOR 1F
    TITLE Clean up script
    CLS
    
    echo "%~dp0%" | findstr "(" >nul 2>&1
    if "%ERRORLEVEL%"=="0" set incorrectPath=1
    echo "%~dp0%" | findstr ")" >nul 2>&1
    if "%ERRORLEVEL%"=="0" set incorrectPath=1
    
    if defined incorrectPath (
    ECHO.
    ECHO.
    ECHO ================================================================
    ECHO Please copy and run script from Desktop or another directory!
    ECHO ================================================================
    ECHO.
    PAUSE >NUL
    goto end
    )
    
    :: Setting Tools environment path variables
    If exist "%WinDir%\SysWOW64" (
    SET "Arch=x64"
    SET "PF=%ProgramFiles(x86)%"
    ) else (
    SET "Arch=x86"
    SET "PF=%ProgramFiles%"
    )
    
    ECHO.
    ECHO.
    ECHO ================================================================
    ECHO Unmounting mounted images...
    ECHO ================================================================
    ECHO.
    for /L %%i in (1, 1, 8) do (
    if exist "%~dp0mount\%%i\Windows\explorer.exe" (
    call :UnmountRegistry
    "%~dp0tools\%Arch%\DISM\dism.exe" /Unmount-Wim /MountDir:"%~dp0Mount\%%i\WinRE" /Discard
    "%~dp0tools\%Arch%\DISM\dism.exe" /Unmount-Wim /MountDir:"%~dp0mount\%%i" /Discard
    )
    )
    
    "%~dp0tools\%Arch%\DISM\dism.exe" /Cleanup-Mountpoints
    
    for /L %%i in (1, 1, 8) do (
    rd /s /q "%~dp0Mount\%%i\WinRE" >nul 2>&1
    rd /s /q "%~dp0mount\%%i" >nul 2>&1
    )
    
    ECHO.
    ECHO.
    ECHO All done!
    ECHO.
    
    :UnmountRegistry
    ECHO.
    ECHO.
    ECHO ================================================================
    ECHO Unmounting mounted registry keys...
    ECHO ================================================================
    timeout /t 5 /NOBREAK >nul
    reg Unload HKLM\TK_COMPONENTS >nul 2>&1
    reg unload HKLM\TK_DEFAULT >nul 2>&1
    reg unload HKLM\TK_NTUSER >nul 2>&1
    reg unload HKLM\TK_SOFTWARE >nul 2>&1
    reg unload HKLM\TK_SYSTEM >nul 2>&1
    ECHO.
    ECHO Done!
    ECHO.
    goto :EOF
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. Caleb28

    Caleb28 MDL Novice

    Dec 7, 2019
    22
    4
    0
    #19498 Caleb28, Jun 8, 2021
    Last edited: Jun 8, 2021
    Hi. I just purchased Windows 10 Pro and may move to it from Win 8.1 Pro and have been trying to research MSMG Toolkit as much as possible but am still confused and have questions:

    1) I don't mean to offend anyone - especially the MSMG Toolkit's creator - and I understand the creator is quite trusted but is it possible for the MSMG Toolkit to contain / add / inject any type of malware, keyloggers, spyware, trojans, etc.? Is MSMG open-source and have people checked the coding to make sure it doesn't do anything to the PC, to the custom-created / edited Windows 10 ISO it creates, etc. which can compromise security and/or privacy? I don't want to risk downloading someone else's custom created ISO (regardless how trusted the ISO's creator may be) but that then got me thinking, is using the MSMG Toolkit myself to create my own ISO really any different???...

    2) I tried MSMG Toolkit and the default Windows ISO is around 4 GB but the custom one that MSMG created was around 8 GB. If all I did was remove things from the default Windows ISO, shouldn't the custom one be even smaller than the default and not larger (let alone around 2x as large)?

    3) Can I use the default Win 10 ISO for the install, fully install all drivers (chipset, IMEI, audio, ethernet, graphics, etc.), fully update Win 10, and then get rid of all the Win 10 bloat which can affect things like security, privacy, CPU usage, RAM usage, etc. via registry-edits, script-running, removing apps, disabling services, and using programs (eg. O&O ShutUp10, WPD, Blackbird, etc.)? Or does MSMG Toolkit remove / disable / block things that cannot be otherwise removed / disabled / blocked on an already installed Win 10 setup using those other listed methods?
     
  18. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    768
    560
    30
    I'll give it a shot, surely others can give a more complete and/or correct answer.
    1) The cmd script is plain text, the toolkit helper itself is not open source (which is completely understandable). But If MSMG would want to distribute any kind of malware, easier methods would be available to do just that.
    I have been building images with MSMG toolkit for quite some time and have never found any suspicious files or activity.

    2) Maybe you forgot to cleanup and rebuild the image. That step is really necessary. It's in one of the menu's. Please refer to the readme file.

    3) MSMG is not a privacy tool in itself. You can remove or ad some packages, but there is no special focus on privacy. To achieve that, you can indeed run some tools like O&O shutup10 or the likes after deployment.
    Some users have posted customized scripts to do that.
    So, the first part of your third question is affirmative.

    Cheers.
     
  19. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    300
    397
    10
    ================================================================
    Unmounting mounted registry keys...
    ================================================================

    Done!
    Режим вывода команд на экран (ECHO) отключен.


    ================================================================
    Unmounting mounted images...
    ================================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.20339.2

    Image File : C:\Win\Integrator10\DVD\sources\boot.wim
    Image Index : 1
    Unmounting image
    [==========================100.0%==========================]

    Error: 0xc1420117

    The directory could not be completely unmounted. This is usually due to applications that still have files opened within the mount directory. Close these files and unmount again to complete the unmount process.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    Deployment Image Servicing and Management tool
    Version: 10.0.20339.2

    Image File : C:\Win\Integrator10\DVD\sources\boot.wim
    Image Index : 1
    Unmounting image
    [==========================100.0%==========================]

    Error: 0xc1420117

    The directory could not be completely unmounted. This is usually due to applications that still have files opened within the mount directory. Close these files and unmount again to complete the unmount process.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    Deployment Image Servicing and Management tool
    Version: 10.0.20339.2

    Cleaning up image
    Unmounting image at C:\Win\Integrator10\Mount
    [==========================100.0%==========================]
    Scanning drive C for stale files
    Scanning drive D for stale files
    Scanning drive E for stale files
    Scanning drive F for stale files
    Scanning drive G for stale files
    The operation completed successfully.