Win8 upgrade Win10: Setup.exe command line parameters explain

  
        

This article is reproduced from the IT home

Setup.exe as part of the Win10 preview installation file, in fact, not only can be run by double-clicking. By adding various command line arguments behind it, we can customize the Windows 10 installation behavior to some extent. Below, the Win10 home also brings you some command line parameters.

▼Win10 system installer Setup.exe command line parameters detailed:


Command 1::auto

Available parameters: Upgrade; DataOnly; Clean

Role: Automated installation deployment and migration, the installation process and the interactive interface will still be displayed, but will be set automatically. This parameter will also automatically apply the following default settings: Auto Accept EULA Protocol, Install Update Default Enable, Telemetry Data Collection and Upload Default On, OOBE Interaction Interface will be skipped directly, hard disk partition boot record will be upgraded or created.

Example: setup.exe /auto upgrade Automatically upgrades the installation.

Command 2: /quiet

Available Parameters: None

Function: This command will hide all installation interfaces, including the post-failure rollback interface.

Example: setup.exe /auto upgrade /quiet Silent automatic upgrade installation.

Command 3: /pkey

Available Parameters: Product Serial Number

Role: Install the Win10 system with a specific product serial number.

Example: setup.exe /auto upgrade /pkey ABC12-DEF34-GHI56-JKL78-MNP90 Automatic upgrade installation and use the following serial number

Command 4:/showoobe

Available parameters: Full; None

Role: After using the Full parameter, the user must manually complete the entire OOBE setting interface, the setup process after the system is installed; when the None parameter is used, the OOBE setting process will Will be skipped directly and all set to the default settings.

Example: setup.exe /auto upgrade /showoobe none Automatically upgrades the installation without displaying the OOBE interface.

Command 5: /noreboot

Available Parameters: None

Function: After completing the operation under the current system, the installer will automatically restart the computer to enter the next installation process. After adding this command, the computer will not restart automatically. The installer will start automatically the next time the computer restarts.

Example: setup.exe /auto upgrade /noreboot Automatically upgrades the installation, but does not automatically restart the computer.

Command 6:/DynamicUpdate

Available Parameters: Enable; Disable

Function: Sets whether the installer performs an automatic search during the installation process and downloads and installs the latest update.

Example: setup.exe /auto upgrade /DynamicUpdate disable Automatically upgrades the installation, but does not perform an automatic update operation.

Command 7:/Postoobe \\setupcomplete.cmd

Available Parameters: The setupcomplete.cmd file path located on a local or UNC network.

Role: Insert and run the setupcomplete.cmd file at a specific location, which can be customized as needed. The specific installation time is before the first user logs in after the system is installed. This file will run as a system administrator.

Example: setup.exe /auto upgrade /postoobe c:\\script\\setupcomplete.cmd Automatic upgrade installation, run the administrator under "ld:; C:\\script" Setupcomplete.cmd” file.

Command 8:/Postrollback

Available Parameters: The setuprollback.cmd file path located on a local or UNC network.

Function: When the Win10 installation fails, and the system automatically rolls back to the previous version of the system, the setuprollback.cmd file is automatically run with administrator privileges.

Example: setup.exe /auto upgrade /postrollback c:\\script\\script\\setuprollback.cmd Automatically upgrades the installation. When it fails and rolls back to the previous version of the operating system, the automatic execution is located at “C: \\script” under the "setuprollback.cmd" file.

Command 9: /installfrom

Available Parameters: The “xxx.wim” file located in the local or UNC network path.

Role: Set the installation source location.

Example: setup.exe /auto upgrade /installfrom d:\\myWim\\customwim.wim Use the customwim.wim file under “D:\\myWim” to automatically upgrade and install Win10.

Command 10:/PBRUpdate

Available Parameters: Enable; Disable

Effect: When set to Enable, the installer will upgrade or create a hard disk partition boot record. Conversely, when set to “Disable", the hard disk partition boot directory will not be created or upgraded.

Example: setup.exe /auto upgrade /PBRupdate disable Automatically upgrade and install Win10 without upgrading or creating an existing hard disk partition boot directory.

Command 11:/migratealldrivers

Available Parameters: All; None

Effect: When set to All, the installer will attempt to install all drivers; If you select None, no drivers will be installed during the system installation. This command is only used in a test environment and cannot be used in actual products.

Example: setup.exe /auto upgrade /migratealldrivers none Automatically install and install Win10 without installing any version of the driver.

Command 12: /installdrivers

Available Parameters: A folder located under a local or UNC network path that contains a driver file with the suffix inf.

Effect: When this option is set, Win10 will traverse the search and install all the inf driver files in the specified folder during the installation process. You can use this feature to install all the drivers that were backed up before.
Example: setup.exe /auto upgrade /installdrivers c:\\myUpgrade\\drivers Automatically upgrade and install Win10 system, and install all drivers with "*.inf” suffix from “c:\\myUpgrade\\drivers” .

Command 13:/Telemetry

Available Parameters: Enable; Disable

Function: When the Enable option is set, all installed telemetry information will be collected and uploaded during the installation process. Conversely, when set to Disable, the upload will not be collected.

Example: setup.exe /auto upgrade /Telemetry enable Automatically upgrades and installs Win10, and collects and uploads telemetry information during installation.

Command 14:/Copylogs

Available Parameters: Paths on Local or UNC Network

Function: Once Win10 installation fails, the system will package the relevant log files. Go to the directory specified above; only system administrator rights users can view related files.

Example: setup.exe /auto upgrade /copylogs \\MyShare\\UpgradeLogs Automatically update and install Win10. If it fails, upload the log file to “\\MyShare\\UpgradeLogs”.

Copyright © Windows knowledge All Rights Reserved