The installer program Windows 10 contains a setup.exe that is part of the installation media, and supports several commands of the command prompt. With these commands, you can modify the behavior of the Windows installation. Below we describe all the commands available for Windows 10 setup.exe. The commands were provided by MDL.
Command: / auto
Parameters: Upgrade; DataOnly; Clean
What it does: Automates installation with various options
The setup UI screens and installation progress are by default, but everything is automated.
Example: setup.exe / auto upgrade
Command: / quiet
What it does: Cancels every UX setup as well as rollback UX
Example: setup.exe / auto upgrade / quiet
Command: / pkey
Parameters: 5×5 product key
What it does: gives setup the product key.
This parameter is not necessary when upgrading to Windows volume licensed or Windows that contains a pid.txt file in the installation folder in the sources folder.
Example: setup.exe / auto upgrade / pkey IGURU-GR531-IGURU-J4TGR-IGURU
Command: / showoobe
Parameters: Full; None
What it does: When the / showoobe is set to Full, the end user should manually write the OOBE.
Alternatively, when the / showoobe is set to None, the OOBE (*) is omitted and its items are taken their default settings.
Example: setup.exe / auto upgrade / showoobe full
Command: / noreboot
What it does: setup will not automatically reboot the PC during installation. When the computer starts again, the installation will continue.
Example: setup.exe / auto upgrade / noreboot
Command: / DynamicUpdate
Parameters: Enable; Disable
What it does: Specifies whether the installation will proceed to dynamic actions such as search, download, and install updates.
Example: setup.exe / auto upgrade / DynamicUpdate disable
Command: / Postoobe \ setupcomplete.cmd
Παράμετροι : τοπική διαδρομή archiveυ ή διαδρομή UNC network σε ένα αρχείο που ονομάζεται setupcomplete.cmd
What it does: run the setupcomplete.cmd file from a specific location
Setupcomplete.cmd is a custom script to perform tasks after the installation is complete, and before the user first connects. It runs with system permissions.
Example: setup.exe / auto upgrade / postoobe c: \ script \ setupcomplete.cmd
Command: / Postrollback
Parameters: Local file path or path to a file in the UNC network on a file named setuprollback.cmd
What it does: Run the setuprollback.cmd file from a specific location
Setuprolback.cmd is a custom script that will perform their tasks when the installation fails and the computer returns to its previous operating system.
It runs with the same rights as the user or the process that started the installation.
Example: setup.exe / auto upgrade / postrollback \ MyShare \ script \ setuprollback.cmd
Command: / installfrom
Parameters: Local file path or network path to a specific .wim
What it does: Specifies the location for the source of the installation
Example: setup.exe / auto clean / installfrom d: \ iGuRuWim \ customwim.wim
Command: / PBRUpdate
Parameters: Enable; Disable
What to do: If / PBRUpdate is set to Enable, the setting will update or create the PBR partition.
Instead, when / PBRUpdate is set to Disable, the setting will not update or create a PBR partition
Example: setup.exe / auto upgrade / PBRupdate disable
Command: / migratealldrivers
Parameters: All; None
What it does: When / migratealldrivers are set to All, setup will try to integrate all drivers as part of the installation.
By contrast, when / migratealldrivers are set to None, setup will not do anything with drivers during installation.
NOTE: This command should only be used for tests and in general only on test pcs. It should not be used in production machinery.
Example: setup.exe / auto upgrade / migratealldrivers none
Command: / installdrivers
Parameters: Local file path or file path to a UNC network in the folder containing files. inf.
What it does : Setup will run all the driver .infs are located in the specified location during installation.
Setup will search all subfolders in the specified location.
Example: setup.exe / auto upgrade / installdrivers c: \ igurauUpgrade \ drivers
Command: / Telemetry
Parameters: Enable; Disable
What it does: When / Telemetry is set to Enable, the setup will collect and upload the telemetry made by the installation. With the Disable parameter it will not.
Example: setup.exe / auto upgrade / Telemetry enable
Command: / copylogs
Parameters: Local file paths and network UNC paths
What it does: If the installation fails, the setting will copy or upload compressed logs to that location.
Note that the computer and / or user must have permission and access to the network for the specified path of the file.
Example: setup.exe / auto upgrade / copylogs \ iGuRu_Share \ UpgradeLogs
Below is an example of usage.
An installer may want to have logs and other diagnostic information from test computers in case of failure.
The following command prompt in setup will invoke the setuprollback.cmd script after the installation failed:
Setup.exe / auto upgrade / installdrivers c: \ iGuRuUpgrade \ drivers / postrollback c: \ setuprollback.cmd
(*) OOBE is the origin of the Out Of Box Experience