Windows 10 AIO 的批次檔

Windows 10 All in One

備存一下...

@echo off

rem set windows adk deployment tool path
set tool_path = J:\Win10\Deployment Tools

rem extrac each version, and copy install.wim into each path
set ltsb_path = J:\Win10\ltsb
set ent_path = J:\Win10\ent
set edu_path = J:\Win10\edu
set mul_path = J:\Win10\mul

set work_path = Y:\
rem iso layout base on http://download.futuretech.in/Win10MultiIsoBase.zip
set win_source = J:\Win10\base

set path=%path%;%too_path%\amd64\DISM;%tool_path%\amd64\Oscdimg;

Imagex /compress maximum /export %ltsb_path%\x64\sources\install.wim 1 %work_path%\install.wim
Imagex /compress maximum /export %ent_path%\x64\sources\install.wim 1 %work_path%\install.wim
Imagex /compress maximum /export %edu_path%\x64\sources\install.wim 1 %work_path%\install.wim
Imagex /compress maximum /export %mul_path%\x64\sources\install.wim 1 %work_path%\install.wim
Imagex /compress maximum /export %mul_path%\x64\sources\install.wim 2 %work_path%\install.wim

Imagex /info %work_path%\install.wim 1 "x64 企業版(LTSB)" "Windows 10 x64 企業版 2016 長期支援"
Imagex /info %work_path%\install.wim 2 "x64 企業版" "Windows 10 x64 企業版(1607)"
Imagex /info %work_path%\install.wim 3 "x64 教育版" "Windows 10 x64 教育版(1607)"
Imagex /info %work_path%\install.wim 4 "x64 專業版" "Windows 10 x64 專業版(1607)"
Imagex /info %work_path%\install.wim 5 "x64 家用版" "Windows 10 x64 家用版(1607)"

xcopy /Y /J /R %work_path%\install.wim %win_source%\x64\sources
del %work_path%\install.wim
notepad %win_source%\x64\sources\EI.CFG
pause

Imagex /compress maximum /export %ltsb_path%\x86\sources\install.wim 1 %work_path%\install.wim
Imagex /compress maximum /export %ent_path%\x86\sources\install.wim 1 %work_path%\install.wim
Imagex /compress maximum /export %edu_path%\x86\sources\install.wim 1 %work_path%\install.wim
Imagex /compress maximum /export %mul_path%\x86\sources\install.wim 1 %work_path%\install.wim
Imagex /compress maximum /export %mul_path%\x86\sources\install.wim 2 %work_path%\install.wim

Imagex /info %work_path%\install.wim 1 "x86 企業版(LTSB)" "Windows 10 x86 企業版 2016 長期支援"
Imagex /info %work_path%\install.wim 2 "x86 企業版" "Windows 10 x86 企業版(1607)"
Imagex /info %work_path%\install.wim 3 "x86 教育版" "Windows 10 x86 教育版(1607)"
Imagex /info %work_path%\install.wim 4 "x86 專業版" "Windows 10 x86 專業版(1607)"
Imagex /info %work_path%\install.wim 5 "x86 家用版" "Windows 10 x86 家用版(1607)"

xcopy /Y /J /R %work_path%\install.wim %win_source%\x86\sources
del %work_path%\install.wim
notepad %win_source%\x86\sources\EI.CFG
pause

echo make iso...
oscdimg.exe -lWIN10AIO -m -u2 -b%win_source%\boot\etfsboot.com %win_source% %work_path%\WIN10AIO.ISO

echo done.
pause

另外也可用 WinAIO Maker Professional 這軟體來製作, 然而無論那種方式, 基底如果是用 x64 版的都會安裝失敗,

解決方式:

1. 採用 x86 基底

2. 支援多重開機的 Win10MultiIsoBase