1. Kenafri

    Kenafri MDL Member

    Jul 22, 2014
    104
    49
    10
    #11721 Kenafri, Aug 8, 2019
    Last edited: Aug 8, 2019
    Hi,

    1) Edit :RemoveWindowsComponentsList section of your ToolKit_vxxx.cmd file like this & save it:
    Code:
    echo.-------------------------------------------------------------------------------
    echo.####Removing Windows Components Using Package List#############################
    echo.-------------------------------------------------------------------------------
    echo.
    if "%ImageIndexNo%" equ "*" (
        echo.
        for /L %%i in (1, 1, %ImageCount%) do (
            if not %ImageIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]#############################
            if %ImageIndexNo% gtr 9 echo.##########################[Install.wim, Index : %%i]############################
            echo.
    
            for /f %%z IN ('"type %RemovePkgsList%" 2^>nul') do (
                echo %%z | findstr /C:"ToolKitHelper:" 1>nul
                if errorlevel 1 (
                    call :RemoveLockedPackage "%InstallMount%\%%i", %%z, %%z
                ) else (
                    for /f "tokens=2 delims=:" %%a in ("%%z") do (
                        call :RemoveWindowsComponent "%InstallMount%\%%i", "%%a", "%%a"
                    )
                )
    
                if /i "%%z" equ "OneDrive" (
                    rem Mounting Image Registry...
                    call :MountImageRegistry "%InstallMount%\%%i"
                    rem Deleting OneDrive remaining stuff...
                    Reg delete "HKLM\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Run" /v OneDriveSetup /f >nul 2>&1
                    call :RemoveFile "%InstallMount%\%%i\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk"
                )
            )
        )
    ) else (
        for /f %%z IN ('"type %RemovePkgsList%" 2^>nul') do (
            echo %%z | findstr /C:"ToolKitHelper:" 1>nul
            if errorlevel 1 (
                call :RemoveLockedPackage "%InstallMount%", %%z, %%z
            ) else (
                for /f "tokens=2 delims=:" %%a in ("%%z") do (
                    call :RemoveWindowsComponent "%InstallMount%", "%%a", "%%a"
                )
            )
    
            if /i "%%z" equ "OneDrive" (
                rem Mounting Image Registry...
                call :MountImageRegistry "%InstallMount%"
                rem Deleting OneDrive remaining stuff...
                Reg delete "HKLM\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Run" /v OneDriveSetup /f >nul 2>&1
                call :RemoveFile "%InstallMount%\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk"
            )
        )
    )
    echo.-------------------------------------------------------------------------------
    echo.####Finished Removing Windows Components Using Package List####################
    echo.-------------------------------------------------------------------------------
    

    2) Mount install.Wim
    3) Add/Remove/Customize like previously & save Source.
    4) Run your tests
     
  2. LupusRex

    LupusRex MDL Novice

    May 19, 2013
    18
    3
    0
    You mount the image registry -> tools -> options -> Load image registry (keys 8,3,4)
    You can then either start regedit and navigate to HKEY_LOCAL_MACHINE\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Run and delete the onedrivesetup registry key entry
    or create a reg file in where you put the reg info

    or copy paste this in to a new reg file

    Code:
    Windows Registry Editor Version 5.00
    
    ; Removes the onedrive setup
    [HKEY_LOCAL_MACHINE\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Run]
    "OneDriveSetup"=-
    
    And then run the reg file.

    When done unmount the image registry again. tools->options->unload image registry (keys 8,3,4)

    Hope this helps you

    Cheers
    /Rex

    Edit: Or do as Kenafri suggest :)

    /LR
     
  3. MIMMO61

    MIMMO61 MDL Senior Member

    Aug 19, 2009
    356
    106
    10
    Thanks for this suggestion is a good alternative.
     
  4. Baadshah

    Baadshah MDL Novice

    Aug 9, 2019
    6
    1
    0
    Can anyone help in removing windows telemetry and other windows component in Windows 10 19H1. I cant see the options in Remove. I could remove only all windows apps.

    In some videos I watched on how to use toolkit there were 4 options for me it only shows 3.

    1 Remove windows component --> here I have the option to remove all windows apps ( Metro Apps)
    2.Remove Default metro Apps using Apps List --> Here it doesnt seem to remove anything ( becuase the first option already finished removing them)
    3.Remove windows Components using package List --> If i Proceed with Y , it removes Assigned Access package / CEIP SQM Package / Face recognition Package.
    I dont see any other options to remove onedrive , windows telemetry and any advanced windows windows components.
    VERSION 9.3.2
    PS: I am a newB here.
     
  5. boyonthebus

    boyonthebus MDL Expert

    Sep 16, 2018
    1,168
    752
    60
    Yea they are really missing out. smh!!!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. tonou44

    tonou44 MDL Novice

    Nov 23, 2017
    1
    0
    0
    guys when i try to edit 1903 edition i have error source os not supported..i cant edit the latest windows 10?i used toolkit 9.2.3.other windows editions works fine
     
  7. windows builder

    windows builder MDL Guru

    Sep 13, 2017
    2,210
    1,539
    90
    v1903 is not fully supported yet.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. MIMMO61

    MIMMO61 MDL Senior Member

    Aug 19, 2009
    356
    106
    10
  9. Dudefoxlive

    Dudefoxlive MDL Novice

    Oct 27, 2018
    10
    2
    0
    Hello, I noticed that there's only one pack available and its a games pack. Question is where are all the other packs? I am sorry if this has already been answered but i have not looked on here in a little while.
     
  10. MHCGHOST

    MHCGHOST MDL Novice

    Jul 19, 2019
    4
    0
    0
    Thanks Man A Lot
     
  11. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,487
    210
    Right now the current version only support removal of apps for v1903.

    Will be releasing a new version with updated Toolkit.cmd and Toolkit pack structure once the coding for mui component removal data is finished.

    The upcoming new version does support removal of all components but there is still one issue, the removed components does get restored by using the Windows Update, I'm still experimenting with various methods to fix it.

     
  12. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,487
    210
    Yes the pack files have been moved for restructuring and the process has been 99% completed with few packs need to be uploaded and also the Toolkit script is also updated to match the new packs.

    The Pack folder will be restored soon.

     
  13. MIMMO61

    MIMMO61 MDL Senior Member

    Aug 19, 2009
    356
    106
    10
    This is a nice idea, but I don't know how to create this .xml file and where to insert it.
    Thank you for your suggestion
     
  14. xCyBx

    xCyBx MDL Senior Member

    Aug 6, 2018
    316
    604
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Baadshah

    Baadshah MDL Novice

    Aug 9, 2019
    6
    1
    0
    thank u so much for giving a reply.
     
  16. OrdinaryNova

    OrdinaryNova MDL Novice

    Mar 15, 2019
    32
    3
    0
    If won't be a trouble , there are some ( me ) that can live with no Windows Update ( I disable before going online anyway ) , might use this version as well.