You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo This utility helps you capture an entire Windows installation to a WIM file. This file can be mounted or applied later.
6
+
echo.
7
+
echo Note that, if you plan on using the Windows installation to deploy it to a network, this utility may produce a result incompatible with this process.
8
+
echo.
9
+
echo You must have 2 volumes: the volume you want to capture, and the volume on which you want to store the WIM file. You should know the letters assigned to the volumes.
10
+
echo.
11
+
echo Showing drive letter assignments...
12
+
setscriptpath=%TEMP%\%RANDOM%.txt
13
+
setconfiglistpath=%TEMP%\configlist.ini
14
+
15
+
echo lis vol >%scriptpath%
16
+
echo exi >>%scriptpath%
17
+
18
+
diskpart /s %scriptpath%
19
+
20
+
set /p sourcedrive=Please enter the letter of the volume to capture:
21
+
ifnotdefined sourcedrive (
22
+
echo The letter of the volume to capture must be specified.
23
+
exit /b 1
24
+
)
25
+
set /p destdrive=Please enter the letter of the volume the file will be stored on:
26
+
ifnotdefined destdrive (
27
+
echo The letter of the volume where the image will be stored must be specified.
28
+
exit /b 1
29
+
)
30
+
echo.
31
+
set /p destfile=Enter a file name for the target WIM file. Press ENTER without specifying anything to continue with a random name:
32
+
ifnotdefined destfile (
33
+
setdestfile=install_%RANDOM%.wim
34
+
)
35
+
36
+
set /p imagename=Provide a custom name (without quotes) for the resulting Windows image (e.g., "My Amazing Windows installation"):
37
+
ifnotdefined imagename (
38
+
setimagename=Windows
39
+
)
40
+
41
+
echo Capturing Windows installation to the target WIM file. This can take a long time, depending on the computer's speed.
0 commit comments