Win10 system Setup.exe program parameter description

  
Setup.exe is one of the Win10 preview installation files. When you usually run the exe file, the users operate by double-clicking. But in fact, this is not the only way to run Setup.exe. We can manipulate it by adding various command line arguments after it.
▼Win10 system setup program Setup.exe command line parameters detailed:
Command 1: /auto
• Available parameters: Upgrade; DataOnly; Clean
• Role: automatic 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
• Function: Install 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
• Function: After using the Full parameter, the user must manually complete the entire OOBE setting interface, which is the setting process after the system is installed. When the None parameter is used, the OOBE setting process 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: Set 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:scriptsetupcomplete.cmd Automatically upgrade the installation. Before logging in to the system for the first time, run the “setupcomplete.cmd” file located under “C:script” .
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:scriptscriptsetuprollback.cmd Automatically upgrades the installation. When it fails and rolls back to the previous version of the operating system, it automatically executes under “C:script” Setuprollback.cmd” file.
Command 9: /installfrom
• Available Parameters: “xxx.wim” file located in the local or UNC network path.
• Function: Set the installation source location.
• Example: setup.exe /auto upgrade /installfrom d:myWimcustomwim.wim Use the customwim.wim file under “D:myWim” to automatically upgrade and install Win10.
Command 10:/PBRUpdate
• Available Parameters: Enable; Disable
• Function: 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
• Function: When set to All, the installer will try to install all drivers; while None is selected Any drivers will be installed during 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 Win10 without installing any version of the driver.
Command 12: /installdrivers
• Available Parameters: A folder located under a local or UNC network path containing a driver file with the suffix inf.
• Function: 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:myUpgradedrivers Automatically upgrades and installs the Win10 system and installs all drivers with the suffix "“*.inf”" from “c:myUpgradedrivers”.
Command 13:/Telemetry
• Available Parameters: Enable; Disable
• Function: When the Enable option is set, the system will collect and upload all installed telemetry information during the installation process; When set to Disable, uploads will not be collected.
• Example: setup.exe /auto upgrade /Telemetry enable Automatically upgrade and install Win10, and collect and upload telemetry information during installation.
Command 14: /Copylogs
• Available parameters: Path under local or UNC network
• Function: Once Win10 installation fails, the system will package the relevant log files to the specified directory. Medium; only system administrator rights users can view related files.
• Example: setup.exe /auto upgrade /copylogs MyShareUpgradeLogs Automatic Update Upgrade Install Win10, if it fails, upload the log file to “MyShareUpgradeLogs”
by adding these command lines after Setup.exe With parameters, we can easily meet our requirements without having to install them step by step.

Copyright © Windows knowledge All Rights Reserved