Just repeat the (wimlib)imagex command for all indexes you want to rename. Example snippet from my AiO ISO creation script: Code: Bin\imagex /flags "Core" /info "AiO\x64\Sources\aio.install.wim" 1 "Win 11 (%BRANCHE%) Home x64 %LANG% (%BUILD%)" "Win 11 (%BRANCHE%) Home x64 %LANG% (%BUILD%)" Bin\imagex /flags "Core" /info "AiO\x64\Sources\aio.install.wim" 2 "Win 11 (%BRANCHE%) Home x64 %LANG% (%BUILD% - MRP)" "Win 11 (%BRANCHE%) Home x64 %LANG% (%BUILD% - MRP)" Bin\imagex /flags "Core" /info "AiO\x64\Sources\aio.install.wim" 3 "Win 11 (%BRANCHE%) Home x64 %LANG% (%BUILD% - MRP - HWID)" "Win 11 (%BRANCHE%) Home x64 %LANG% (%BUILD% - MRP - HWID)" Bin\imagex /flags "Core" /info "AiO\x64\Sources\aio.install.wim" 4 "Win 11 (%BRANCHE%) Home x64 %LANG% (%BUILD% - MRP - O365)" "Win 11 (%BRANCHE%) Home x64 %LANG% (%BUILD% - MRP - Office 365 - Ohook)" ............................ Bin\imagex /flags "Professional" /info "AiO\x64\Sources\aio.install.wim" 9 "Win 11 (%BRANCHE%) Professional x64 %LANG% (%BUILD%)" "Win 11 (%BRANCHE%) Professional x64 %LANG% (%BUILD%)" Bin\imagex /flags "Professional" /info "AiO\x64\Sources\aio.install.wim" 10 "Win 11 (%BRANCHE%) Professional x64 %LANG% (%BUILD% - MRP)" "Win 11 (%BRANCHE%) Professional x64 %LANG% (%BUILD% - MRP)" Bin\imagex /flags "Professional" /info "AiO\x64\Sources\aio.install.wim" 11 "Win 11 (%BRANCHE%) Professional x64 %LANG% (%BUILD% - MRP - HWID)" "Win 11 (%BRANCHE%) Professional x64 %LANG% (%BUILD% - MRP - HWID)" Bin\imagex /flags "Professional" /info "AiO\x64\Sources\aio.install.wim" 12 "Win 11 (%BRANCHE%) Professional x64 %LANG% (%BUILD% - MRP - O365)" "Win 11 (%BRANCHE%) Professional x64 %LANG% (%BUILD% - MRP - Office 365 - Ohook)" ............................................. Bin\imagex /flags "Enterprise" /info "AiO\x64\Sources\aio.install.wim" 25 "Win 11 (%BRANCHE%) Enterprise x64 %LANG% (%BUILD%)" "Win 11 (%BRANCHE%) Enterprise x64 %LANG% (%BUILD%)" Bin\imagex /flags "Enterprise" /info "AiO\x64\Sources\aio.install.wim" 26 "Win 11 (%BRANCHE%) Enterprise x64 %LANG% (%BUILD% - MRP)" "Win 11 (%BRANCHE%) Enterprise x64 %LANG% (%BUILD% - MRP)" Bin\imagex /flags "Enterprise" /info "AiO\x64\Sources\aio.install.wim" 27 "Win 11 (%BRANCHE%) Enterprise x64 %LANG% (%BUILD% - MRP - HWID)" "Win 11 (%BRANCHE%) Enterprise x64 %LANG% (%BUILD% - MRP - HWID)" Bin\imagex /flags "Enterprise" /info "AiO\x64\Sources\aio.install.wim" 28 "Win 11 (%BRANCHE%) Enterprise x64 %LANG% (%BUILD% - MRP - O365)" "Win 11 (%BRANCHE%) Enterprise x64 %LANG% (%BUILD% - MRP - Office 365 - Ohook)"
Code: for /f "tokens=3 delims=: " %%i in ('Bin\wimlib-imagex info AiO\x64\Sources\install.wim ^| findstr /c:"Image Count"') do set images=%%i for /L %%i in (1,1,%images%) do ( for /f "tokens=3 delims=<>" %%a in ('Bin\imagex /info AiO\x64\Sources\install.wim %%i ^| find /i "<HIGHPART>"') do set "HIGHPART=%%a" for /f "tokens=3 delims=<>" %%a in ('Bin\imagex /info AiO\x64\Sources\install.wim %%i ^| find /i "<LOWPART>"') do set "LOWPART=%%a" Bin\wimlib-imagex info AiO\x64\Sources\install.wim %%i --image-property CREATIONTIME/HIGHPART=!HIGHPART! --image-property CREATIONTIME/LOWPART=!LOWPART! >nul ) Also a snippet from my AiO ISO creation tool