@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
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"?
@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 ::-------------------------------------------------------------------------------------------
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.
Do you apply, in the Customize Menu the "Remove Default Inbox Apps Association XML" option? I believe it's that.
@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.
@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: Spoiler: optimized Cleaning Up Images folders 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 ::-------------------------------------------------------------------------------------------
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!
@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.
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?
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>
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.
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!