The recent I usually add wim file,but command is long
So create a bat file , this bat file can increase wim file create time
P.S need PE3(for win7)
@Echo off
mode con:cols=80 lines=30
:cd %:h
SETLOCAL EnableExtensions
color 0B
:INIT
cls
ECHO ________________________________________________________________________________
echo.
echo.
echo.
echo Do you want to create a recovery file(wim)? (y or n)
echo.
echo.
echo.
ECHO ________________________________________________________________________________
echo Press Y or N
ECHO ________________________________________________________________________________
SET /P K=Make Your Selection Then Press ENTER:
IF "%K%"=="y" GOTO select_source_disk
IF "%K%"=="Y" GOTO select_source_disk
IF "%K%"=="n" GOTO End
IF "%K%"=="N" GOTO End
echo Invalid Input
pause
GOTO INIT
:End
cls
Echo Press Any Key To Exit
pause
exit
:select_source_disk
cls
ECHO ________________________________________________________________________________
echo input your source disk
echo for example c:
echo.
ECHO ________________________________________________________________________________
echo Press c or d
echo.
SET /p Po_source_disk=%K%
echo %Po_source_disk%: disk you choose it? (y or n)
echo.
ECHO ________________________________________________________________________________
SET /P K=Make Your Selection Then Press ENTER:
IF "%K%"=="y" GOTO select_target_disk
IF "%K%"=="Y" GOTO select_target_disk
GOTO select_source_disk
:select_target_disk
cls
ECHO ________________________________________________________________________________
echo.
echo your select source disk is %Po_source_disk%:
echo.
echo input your target disk
echo for example d:
echo.
ECHO ________________________________________________________________________________
echo Press d or e
echo.
SET /p Po_target_disk=%K%
echo %Po_target_disk%: disk you choose it? (y or n)
echo.
ECHO ________________________________________________________________________________
SET /P K=Make Your Selection Then Press ENTER:
IF "%K%"=="y" GOTO create_wim
IF "%K%"=="Y" GOTO create_wim
GOTO select_target_disk
:create_wim
cls
ECHO ________________________________________________________________________________
echo.
echo your select source disk is %Po_source_disk%:
echo your select target disk is %Po_target_disk%:
echo copy %Po_source_disk%: to %Po_target_disk%:\win7.wim
echo start
Imagex /compress maximum /capture %Po_source_disk%: %Po_target_disk%:\win7.wim "windows7"
pause