-
Notifications
You must be signed in to change notification settings - Fork 1
/
winsetup.cmd
57 lines (28 loc) · 900 Bytes
/
winsetup.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off
@rem Windows Setup for WinPe
@rem Windows Image Index
Instructions Windows Setup which OS image to install from install.wim if multiple images may be applicable.
Syntax
/ImageIndex <index>
Syntax
/Unattend
Enables you to use an answer file with Windows Setup.
Syntax
/Unattend:<answer_file>
/WDSDiscover
Specifies that the Windows Deployment Services (WDS) client should be in discover mode.
setup /ImageIndex 3 /ResizeRecoveryPartition Enable
@rem Windows Deployment System
@rem /WDSDiscover
if %ERRORLEVEL% 0 then
:NOK
@echo Something went wrong %ERRORLEVEL%
@echo 0x3 This upgrade was successful.
@echo 0x5 The compatibility check detected issues that require resolution before the upgrade can continue.
@echo 0x7 The installation option (upgrade or data only) was not available.
goto END
:OK
@echo.
@echo Windows Setup completed sucessfully
@echo.
:END