1. risoj12140

    risoj12140 MDL Novice

    Dec 13, 2019
    8
    0
    0
    windows builder, I added to setupcomplete.cmd, but that didn't help. A registry key was not created!

    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "TamperProtection" /t REG_DWORD /d "0" /f
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f
     
  2. risoj12140

    risoj12140 MDL Novice

    Dec 13, 2019
    8
    0
    0
    How do I make tweaks via cmd file?
    What I tried cannot turn off the defender.
     
  3. windows builder

    windows builder MDL Guru

    Sep 13, 2017
    2,219
    1,555
    90
    switch the slider in the settings of the Defender.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. risoj12140

    risoj12140 MDL Novice

    Dec 13, 2019
    8
    0
    0
    windows builder, I asked how to do this for me automatically! I do not need a manual way! :mad:
     
  5. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    8,326
    11,613
    270
    yep Master I know.. I have installed...;).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    8,326
    11,613
    270
    yes I know, but I don't understand this errors so I'm now using old W10 LTSB 2016 ..;):eek:o_O.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. AeonX

    AeonX MDL Addicted

    May 24, 2013
    798
    728
    30
    Do you integrate updates and remove components in the same session or do you integrate updates and save after you mount the image again and remove components? I have no problems with ToolKit v8.8 here. The only difference is that I integrate updates with WHD-W81UI. The Toolkit removes the contents of the folder \Windows\WinSxS\Backup when you save so if you integrate updates and remove components in different sessions this may be the problem.

    I edit the script by commenting out the line that removes that folder to have more control and better compare the size of install.wim when removing certain components. I also comment out the line with $Recycle.Bin and PerfLogs to keep the image as close to the original.

    Code:
    :: Performing [Install.wim] Image Windows Folder Cleanup
    if "%ImageIndexNo%" equ "*" (
        for /L %%k in (1, 1, %ImageCount%) do (
            rem if exist "%InstallMount%\%%k\$Recycle.Bin" rd /q /s "%InstallMount%\%%k\$Recycle.Bin" >nul 2>&1
            rem if exist "%InstallMount%\%%k\PerfLogs" rd /q /s "%InstallMount%\%%k\PerfLogs" >nul 2>&1
            rem if exist "%InstallMount%\%%k\Windows\WinSxS\Backup\*.*" del /f /q rd /q /s "%InstallMount%\%%k\Windows\WinSxS\Backup\*.*" >nul 2>&1
            ...
        )
    ) else (
        rem if exist "%InstallMount%\$Recycle.Bin" rd /q /s "%InstallMount%\$Recycle.Bin" >nul 2>&1
        rem if exist "%InstallMount%\PerfLogs" rd /q /s "%InstallMount%\PerfLogs" >nul 2>&1
        rem if exist "%InstallMount%\Windows\WinSxS\Backup\*.*" del /f /q rd /q /s "%InstallMount%\Windows\WinSxS\Backup\*.*" >nul 2>&1
        ...
    )
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Windows 10 User

    Windows 10 User MDL Guru

    Feb 2, 2017
    2,031
    128
    90
    Thanks. I integrated the latest CU and I've checked and I have the latest build but for some reason WU detected the CU I integrated and successfully installed it. Maybe it's because I used NTLite after using MSMG ToolKit. Will you release a future to remove the returning components after installing windows updates?
     
  9. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    I suggest not using MSMG Toolkit and NTLite at the same time. It tends to cause problems.
     
  10. ceo54

    ceo54 MDL Addicted

    Aug 13, 2015
    969
    466
    30
    I did it in two different sessions. One with version 9.5 to integrate the updates then 8.8 to remove the components. The monthly rollup with older servicing stack did not cause any problems and everything went smoothly with 8.8 so it's either the newer version of the toolkit or the servicing stack update that was causing the issue.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. AeonX

    AeonX MDL Addicted

    May 24, 2013
    798
    728
    30
    It seems then that something has changed with the new servicing stack. Try editing the toolkit 9.5 as I indicated adding the word rem in front of the commands and see if it resolves. Just search for "Performing [Install.wim] Image Windows Folder Cleanup".
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. risoj12140

    risoj12140 MDL Novice

    Dec 13, 2019
    8
    0
    0
    Is it possible to apply registry tweaks with mounting during the installation of windows that disable the defender. Other settings apply this method without problems, but I could not disable it in this way. I used the settings from the Toolkit.cmd file. The image configured by Toolkit before installation disables protection without problems. I need to mount and apply registry settings during installation.

    Is it possible to do this or just before installation?
    The problem is only with the defender.
     
  13. risoj12140

    risoj12140 MDL Novice

    Dec 13, 2019
    8
    0
    0
    How to solve the problem?
     
  14. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    8,326
    11,613
    270
    #13554 Tiger-1, Dec 14, 2019
    Last edited: Dec 14, 2019
    EDIT: .netfx48 already installed inside Windows 10 EnterpriseS W10 LTSC 2016 x64
    EDIT:
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Ace2

    Ace2 MDL Guru

    Oct 10, 2014
    2,206
    1,909
    90
    Try:
    Code:
    Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows Defender\Features" /v "TamperProtection" /t REG_DWORD /d "0" /f
    Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f
     
  16. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    I get the same error.
     
  17. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    8,326
    11,613
    270
    ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. vze2mp9g

    vze2mp9g MDL Addicted

    Oct 13, 2012
    661
    117
    30
    @MSMG

    I'm attempting to add THEME.PACKS to Windows 10 ISO. I was told to extract the Theme Pack(s) and put the in the Custom\Files\w10\x64\Windows\Resources\Themes . There is only one problem, every THEME PACK has the same default folder, DeskTopBackground. Is there something I'm missing? I would really appreciate any and all feedback concerning this matter.
    Thank you...
     
  19. windows builder

    windows builder MDL Guru

    Sep 13, 2017
    2,219
    1,555
    90
    Don’t extract
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    8,326
    11,613
    270
    ;):confused: I'm going crazy... or Do I have to throw this machine in the woods!!!
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...