1. mhussain

    mhussain MDL Senior Member

    Oct 1, 2012
    368
    144
    10
  2. kusosaito

    kusosaito MDL Junior Member

    Nov 14, 2018
    59
    6
    0
    @MSMG , hi there
    do you plan to add the ability to completely cut / disable from the image - need for OS to have SecureBoot and TPM 2.0?
    I just see that custom OS builds begun to appear with this cut
     
  3. bala1

    bala1 MDL Member

    May 2, 2015
    179
    150
    10
    #22563 bala1, Apr 24, 2022
    Last edited: Apr 25, 2022
    Already have a solution for Windows 11Build 22000 651 "without TPM" ??
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    In Portuguese, talk to me, by Private Message - PM.
    Here in English only.

    I put to install in my Intel Atom with 2GB of RAM and is installing.

    You applied the Tweak "Bypass - Windows 11 Checking Hardware Requirements"?
     
  5. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    @MSMG,

    Can you take a look at this modification?

    from:
    Code:
    ::-------------------------------------------------------------------------------------------
    :: Function to List All the Disks and Volumes
    ::-------------------------------------------------------------------------------------------
    :ListDisks
    
    set "DiskTemp=C:"
    call :RemoveFile "%DiskTemp%\DiskList.txt"
    call :RemoveFile "%DiskTemp%\DiskList1.txt"
    
    echo.list volume>> "%DiskTemp%\DiskList.txt"
    diskpart /s "%DiskTemp%\DiskList.txt" >> "%DiskTemp%\DiskList1.txt"
    call :RemoveFile "%DiskTemp%\DiskList.txt"
    echo.>> "%DiskTemp%\DiskList.txt"
    
    echo.===============================================================================>> "%DiskTemp%\DiskList.txt"
    if "%HostLanguage%" equ "en-US" echo.  Volume #  Letter Label      file Sys Type         Size    Status     Info>> "%DiskTemp%\DiskList.txt"
    if "%HostLanguage%" equ "fr-FR" echo.  N# volume   Ltr  Nom          Fs     Type        Taille   Statut     Info>> "%DiskTemp%\DiskList.txt"
    if "%HostLanguage%" equ "zh-CN" echo.  卷 #      盘符   标签       文件系统  类型        大小    状态       信息>> "%DiskTemp%\DiskList.txt"
    echo.------------------------------------------------------------------------------->> "%DiskTemp%\DiskList.txt"
    if "%HostLanguage%" equ "en-US" findstr "Removable" "%DiskTemp%\DiskList1.txt" >> "%DiskTemp%\DiskList.txt"
    if "%HostLanguage%" equ "fr-FR" findstr "Amovible" "%DiskTemp%\DiskList1.txt" >> "%DiskTemp%\DiskList.txt"
    if "%HostLanguage%" equ "zh-CN" findstr "可移动" "%DiskTemp%\DiskList1.txt" >> "%DiskTemp%\DiskList.txt"
    echo.===============================================================================>> "%DiskTemp%\DiskList.txt"
    
    type "%DiskTemp%\DiskList.txt"
    call :RemoveFile "%DiskTemp%\DiskList.txt"
    call :RemoveFile "%DiskTemp%\DiskList1.txt"
    echo.
    
    goto :eof
    ::-------------------------------------------------------------------------------------------
    
    to:

    In "Portuguese", the "Removível" word is not found by Findstr Command.
    But for several Latin languages it should work by reducing the "Removable" word to "Remov" for findstr work.
    Code:
    ::-------------------------------------------------------------------------------------------
    :: Function to List Removable Disks and Volumes
    ::-------------------------------------------------------------------------------------------
    :ListDisks
    
    echo.
    echo.===============================================================================
    echo.DiskPart.exe LIST VOLUME command - for listing Removable USB Flash Devices.
    echo.-------------------------------------------------------------------------------
    for /F "tokens=*" %%# in ('^(echo.LIST VOLUME^) ^| DiskPart.exe ^| findstr /I "Stat 状态 --- Remov Amovible 可移动" ^| findstr /I /V "DISKPART"') do echo.%%#
    echo.===============================================================================
    echo.
    
    goto :EOF
    ::-------------------------------------------------------------------------------------------
    
     
  6. bala1

    bala1 MDL Member

    May 2, 2015
    179
    150
    10

    I haven't tested it yet, but I will test it tonight to see how it goes. Thank's
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Feartamixg

    Feartamixg MDL Addicted

    May 15, 2016
    783
    629
    30
    Anybody having issues setting Windows Photo Viewer as the default to open image files? Even though I set this in the ToolKit, I need to set it again in Windows 10. With Windows 11 this is harder to do than 10, hence me raising the issue now.
     
  8. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    @正义羊,

    Can you please take a look and test, too?
     
  9. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    Do you apply, in the Customize Menu the "Remove Default Inbox Apps Association XML" option?
    I believe it's that.
     
  10. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    258
    152
    10
    OK. Chinese not a Latin Language. SO I WILL TAKE THIS TEXT.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    258
    152
    10
    @inTerActionVRI , I tried custom version of Toolkit, I see this:

    Code:
    ===============================================================================
                         MSMG Toolkit - Format USB Flash Drive
    ===============================================================================
    
    -------------------------------------------------------------------------------
    ####Starting Formatting USB Flash Drive########################################
    -------------------------------------------------------------------------------
    
    -------------------------------------------------------------------------------
    ####Getting USB Flash Drive Options############################################
    -------------------------------------------------------------------------------
    
    Listing Available USB Flash Drives...
    
    ===============================================================================
    -------------------------------------------------------------------------------
    ===============================================================================
    
    Enter USB Flash Drive Letter :
    
    This is trying Format USB Flash Drive founction. Other about USB Flash Drive founctions maybe like this.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #22572 inTerActionVRI, Apr 26, 2022
    Last edited: May 3, 2022
    @MSMG,

    from:
    Code:
                   for /f %%i in ('"dir /s /b /ad "%BootMount%\%%i\Windows\CbsTemp\*"" 2^>nul') do (call :RemoveFolder %%i)
                   del /s /f /q "%BootMount%\%%i\Windows\CbsTemp\*" >nul 2>&1
    
    to:
    Code:
                   for /f %%f in ('dir /B /AD /OG "%BootMount%\%%i\Windows\CbsTemp\*"" 2^>nul') do (call :RemoveFolder "%%~f")
                   del /s /f /q "%BootMount%\%%i\Windows\CbsTemp\*" >nul 2>&1
    
    or to:
    Code:
                   for /f %%f in ('dir /B /AD /OG "%BootMount%\%%i\Windows\CbsTemp\*"" 2^>nul') do (call :RemoveFolder "%%~f")
                   call :RemoveFile "%BootMount%\%%i\Windows\CbsTemp\*" >nul 2>&1
    


    from:
    Code:
                   for /f %%i in ('"dir /s /b /ad "%InstallMount%\%%i\Windows\CbsTemp\*"" 2^>nul') do (call :RemoveFolder %%i)
                   del /s /f /q "%InstallMount%\%%i\Windows\CbsTemp\*" >nul 2>&1
    
    to:
    Code:
                   for /f %%f in ('dir /B /AD /OG "%InstallMount%\%%i\Windows\CbsTemp\*"" 2^>nul') do (call :RemoveFolder "%%~f")
                   del /s /f /q "%InstallMount%\%%i\Windows\CbsTemp\*" >nul 2>&1
    
    or to:
    Code:
                   for /f %%f in ('dir /B /AD /OG "%InstallMount%\%%i\Windows\CbsTemp\*"" 2^>nul') do (call :RemoveFolder "%%~f")
                   call :RemoveFile "%InstallMount%\%%i\Windows\CbsTemp\*" >nul 2>&1
    


    from:
    Code:
    if exist "%BootMount%\%%i\Windows\WinSxS\Backup\*.*" del /f /q "%BootMount%\Windows\WinSxS\Backup\*.*" >nul 2>&1
    
    to:
    Code:
    if exist "%BootMount%\%%i\Windows\WinSxS\Backup\*.*" del /f /q "%BootMount%\%%i\Windows\WinSxS\Backup\*.*" >nul 2>&1
    
    or to:
    Code:
    call :RemoveFile "%BootMount%\%%i\Windows\WinSxS\Backup\*.*" >nul 2>&1
    
    Than we could optimize the SaveSource Cleaning up folders code using the call :RemoveFile
    Like this:
    Code:
    if %errorlevel% equ 1 (
        echo.
        echo.-------------------------------------------------------------------------------
        echo.Cleaning Up Image...
        echo.-------------------------------------------------------------------------------
        echo.
        echo.Cleaning Up temporary and log files or folders...
    
        :: Performing [boot.wim, Index : 1 and 2] Image Windows folder cleanup
        if "%IsBootImageSelected%" equ "Yes" (
            for /l %%i in (1, 1, 2) do (
                if exist "%BootMount%\%%i\Windows\CbsTemp\*" (
                    for /f %%f in ('dir /B /AD /OG "%BootMount%\%%i\Windows\CbsTemp\*" 2^>nul') do (
                        call :RemoveFolder "%%~f"
                    )
                )
                for %%f in (
                    "%WinReMount%\Windows\CbsTemp\*"
                    "%WinReMount%\Windows\WinSxS\Temp\TransformerRollbackData\*"
                ) do (
                    call :RemoveFile "%%f", /S
                )
     
                for %%f in (
                    "%BootMount%\%%i\Users\Default\*.LOG1"
                    "%BootMount%\%%i\Users\Default\*.LOG2"
                    "%BootMount%\%%i\Users\Default\*.TM.blf"
                    "%BootMount%\%%i\Users\Default\*.regtrans-ms"
                    "%BootMount%\%%i\Windows\inf\*.log"
                    "%BootMount%\%%i\Windows\System32\config\*.LOG1"
                    "%BootMount%\%%i\Windows\System32\config\*.LOG2"
                    "%BootMount%\%%i\Windows\System32\config\*.TM.blf"
                    "%BootMount%\%%i\Windows\System32\config\*.regtrans-ms"
                    "%BootMount%\%%i\Windows\System32\SMI\Store\Machine\*.LOG1"
                    "%BootMount%\%%i\Windows\System32\SMI\Store\Machine\*.LOG2"
                    "%BootMount%\%%i\Windows\System32\SMI\Store\Machine\*.TM.blf"
                    "%BootMount%\%%i\Windows\System32\SMI\Store\Machine\*.regtrans-ms"
                    "%BootMount%\%%i\Windows\WinSxS\Backup\*"
                    "%BootMount%\%%i\Windows\WinSxS\ManifestCache\*.bin"
                    "%BootMount%\%%i\Windows\WinSxS\Temp\PendingDeletes\*"
                ) do (
                    call :RemoveFile "%%f"
                )
            )
        )
    
        :: Performing [WinRE.wim, Index : !SpecifiedSourceIndex!] Image Windows folder cleanup
        if "%IsRecoveryImageSelected%" equ "Yes" (
            if exist "%WinReMount%\Windows\CbsTemp\*" (
                for /f %%f in ('dir /B /AD /OG "%WinReMount%\Windows\CbsTemp\*" 2^>nul') do (
                    call :RemoveFolder "%%~f"
                )
            )
            for %%f in (
                "%WinReMount%\Windows\CbsTemp\*"
                "%WinReMount%\Windows\WinSxS\Temp\TransformerRollbackData\*"
            ) do (
                call :RemoveFile "%%f", /S
            )
    
            for %%f in (
                "%WinReMount%\Users\Default\*.LOG1"
                "%WinReMount%\Users\Default\*.LOG2"
                "%WinReMount%\Users\Default\*.TM.blf"
                "%WinReMount%\Users\Default\*.regtrans-ms"
                "%WinReMount%\Windows\inf\*.log"
                "%WinReMount%\Windows\System32\config\*.LOG1"
                "%WinReMount%\Windows\System32\config\*.LOG2"
                "%WinReMount%\Windows\System32\config\*.TM.blf"
                "%WinReMount%\Windows\System32\config\*.regtrans-ms"
                "%WinReMount%\Windows\System32\SMI\Store\Machine\*.LOG1"
                "%WinReMount%\Windows\System32\SMI\Store\Machine\*.LOG2"
                "%WinReMount%\Windows\System32\SMI\Store\Machine\*.TM.blf"
                "%WinReMount%\Windows\System32\SMI\Store\Machine\*.regtrans-ms"
                "%WinReMount%\Windows\WinSxS\Backup\*"
                "%WinReMount%\Windows\WinSxS\ManifestCache\*.bin"
                "%WinReMount%\Windows\WinSxS\Temp\PendingDeletes\*"
            ) do (
                call :RemoveFile "%%f"
            )
        )
    
        :: Performing [install.wim] Image Windows folder cleanup
        for %%i in (!ImageIndexNo!) do (
            if exist "%InstallMount%\%%i\" (
                for %%f in (
                    "%InstallMount%\%%i\$RECYCLE.BIN"
                    "%InstallMount%\%%i\PerfLogs"
                ) do (
                    call :RemoveFolder "%%~f"
                )
    
                if exist "%InstallMount%\%%i\Windows\CbsTemp\*" (
                    for /f %%f in ('dir /B /AD /OG "%InstallMount%\%%i\Windows\CbsTemp\*" 2^>nul') do (
                        call :RemoveFolder "%%~f"
                    )
                )
                for %%f in (
                    "%WinReMount%\Windows\CbsTemp\*"
                    "%WinReMount%\Windows\WinSxS\Temp\TransformerRollbackData\*"
                ) do (
                    call :RemoveFile "%%f", /S
                )
    
                for %%f in (
                    "%InstallMount%\%%i\Users\Default\*.LOG1"
                    "%InstallMount%\%%i\Users\Default\*.LOG2"
                    "%InstallMount%\%%i\Users\Default\*.TM.blf"
                    "%InstallMount%\%%i\Users\Default\*.regtrans-ms"
                    "%InstallMount%\%%i\Windows\inf\*.log"
                    "%InstallMount%\%%i\Windows\System32\config\*.LOG1"
                    "%InstallMount%\%%i\Windows\System32\config\*.LOG2"
                    "%InstallMount%\%%i\Windows\System32\config\*.TM.blf"
                    "%InstallMount%\%%i\Windows\System32\config\*.regtrans-ms"
                    "%InstallMount%\%%i\Windows\System32\SMI\Store\Machine\*.LOG1"
                    "%InstallMount%\%%i\Windows\System32\SMI\Store\Machine\*.LOG2"
                    "%InstallMount%\%%i\Windows\System32\SMI\Store\Machine\*.TM.blf"
                    "%InstallMount%\%%i\Windows\System32\SMI\Store\Machine\*.regtrans-ms"
                    "%InstallMount%\%%i\Windows\WinSxS\Backup\*"
                    "%InstallMount%\%%i\Windows\WinSxS\ManifestCache\*.bin"
                    "%InstallMount%\%%i\Windows\WinSxS\Temp\PendingDeletes\*"
                ) do (
                    call :RemoveFile "%%f"
                )
            )
        )
        echo.
        echo.Finished Cleaning Up Image.
        echo.
    )
    


    Because of the use of the del /S argument in the following command:
    call :RemoveFile "%%f", /S
    It is necessary to improve the label :RemoveFile.

    from:
    Code:
    ::-------------------------------------------------------------------------------------------
    :: Function to delete a file(s)
    :: Input Parameters [ %~1 : Filename ]
    ::-------------------------------------------------------------------------------------------
    :RemoveFile
    
    if exist "%~1" del /F /Q "%~1" >nul
    
    goto :EOF
    ::-------------------------------------------------------------------------------------------
    
    to:
    Code:
    ::-------------------------------------------------------------------------------------------
    :: Function to delete a file(s)
    :: Input Parameters [ %~1 : Filename, %~2 : /S parameter ]
    ::-------------------------------------------------------------------------------------------
    :RemoveFile
    
    if exist "%~1" del %~2 /F /Q "%~1" >nul
    
    goto :EOF
    ::-------------------------------------------------------------------------------------------
    
     
  13. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #22573 inTerActionVRI, Apr 26, 2022
    Last edited: Apr 26, 2022
    But this code I put for testing should be added by replacing the present code within "Toolkit.cmd" or "Customtoolkit.cmd"

    This customtoolkit that is available for download, is the code that does not work for Latin Languages as well.

    So you can test that code on Toolkit as well.
    I've changed the Custom Code here to work in your language and mine.
    But I want to know if this optimization, which is looking for the words in Chinese, will work for you too.

    This should search and display lines with these strings:
    I change "Status" to "Stat" to bring French results with one word.
    I change "Removable" to "Remov" to bring Latin Results results with one word.
    --- to bring the line from the LISTVOLUME command.
    And I put the Chinese words
    Code:
    Stat
    状态
    ---
    Remov
    Amovible
    可移动
    
    Could you do this test?
    Just replace the codes I put in that post.

    Here should show the list of USB devices inserted on the computer.

    Thnks!
     
  14. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    258
    152
    10
    same as https://forums.mydigitallife.net/threads/msmg-toolkit.50572/page-1130#post-1732530
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    258
    152
    10
    #22575 正义羊, Apr 26, 2022
    Last edited: Apr 26, 2022
    @MSMG ,

    Code:
    ===============================================================================
                        MSMG 工具箱 - 格式化 USB 闪存驱动器
    ===============================================================================
    
    -------------------------------------------------------------------------------
    ####正在开始格式化 USB 闪存驱动器##############################################
    -------------------------------------------------------------------------------
    
    -------------------------------------------------------------------------------
    ####正在获取 USB 闪存驱动器选项################################################
    -------------------------------------------------------------------------------
    
    正在列出可用的 USB 闪存驱动器……
    FINDSTR: 无法打开 E:\Toolkit_v12.1\Temp\DiskList1.txt
    
    ===============================================================================
    -------------------------------------------------------------------------------
    ===============================================================================
    
    请输入 USB 闪存驱动器盘符 :
    FINDSTR: 无法打开 E:\Toolkit_v12.1\Temp\DiskList1.txt

    This is why I chose to be in the system root directory instead of the general directory.

    Update: this is my bad what I localize toolkit used old code.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #22576 inTerActionVRI, Apr 26, 2022
    Last edited: Apr 26, 2022
    So for the findstr to find the word that represents the removable in Chinese, I need to change from:
    可移动
    to:
    无法打开
    ?


    @正义羊,
    Can you go to cmd as admin and run:
    DISKPART
    then at DISKPART shell, perform:
    LIST VOLUME
    and post the output to me?
     
  17. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    258
    152
    10
    Code:
    DISKPART> LIST VOLUME
    
      卷 ###      LTR  标签         FS     类型        大小     状态       信息
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      卷     0     C   Windows      NTFS   磁盘分区         128 GB  正常         启动
      卷     1     D                NTFS   磁盘分区         300 GB  正常
      卷     2     E                NTFS   磁盘分区         418 GB  正常
      卷     3     F                NTFS   磁盘分区        1059 GB  正常
      卷     4         SYSTEM       FAT32  磁盘分区         300 MB  正常         系统
      卷     5                      NTFS   磁盘分区         937 MB  正常         已隐藏
      卷     6     I                NTFS   可移动           59 GB  正常
    
    DISKPART>
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    Very grateful for your attention.

    Status

    ---

    Removable

    But to get this line, it does not have to be the word status. It can be "LTR" in Portuguese is also LTR.
    I do not know if in English it's different. If it is equal, it is simpler.


    to perform in cmd as admin
    option 1.
    Code:
    echo OFF & cls & for /F "tokens=*" %# in ('^(echo.LIST VOLUME^) ^| DiskPart.exe ^| findstr /I "LTR --- Remov Amovible 可移动" ^| findstr /I /V "DISKPART"') do echo.%#
    
    option 2.
    Code:
    echo OFF & cls & for /F "tokens=*" %# in ('^(echo.LIST VOLUME^) ^| DiskPart.exe ^| findstr /I "LTR Stat 状态 --- Remov Amovible 可移动" ^| findstr /I /V "DISKPART"') do echo.%#
    

    for the record: option 1 and 2 displaying the same as below, pt-BR.
    Everyone who wants to test, are welcome. It helps to provide better suport for other languages.
    Code:
    Volume No.  Ltr  Rótulo       Fs     Tipo        Tamanho  Status     Informações
    ----------  ---  -----------  -----  ----------  -------  ---------  --------
    Volume 6     E   Janelas 11   NTFS   Removível   7680 MB  Íntegro
    
    If there was a DISM scheme with the "/English" flag that takes the data from the commands in English, regardless of the language of the image, it would be interesting.
     
  19. knigady

    knigady MDL Novice

    Jul 14, 2021
    2
    1
    0
    Hello. Could you please tell me what is the difference between these component removal presets:
    1)Gamer Edition
    2)Lite Edition
    3)Xtreme Lite Edition
    Can I see somewhere the lists of applications that are removed in these presets?
    Could you tell me why the Xtreme Lite Edition is not recommended for gaming? Is it somehow related to performance degradation, the presence of friezes or an increase in input lag? Thank you!