If you want to know the version of DirectX installed on your computer, follow the steps below: Go to Run – dxdiag The new window will show you details about installed DirectX components in your computer. The above screenshot shows that DirectX 11 is installed on a Windows 8.1 system. The documentation mentions that /silent (it has lower-case) is the only supported command-line argument for the standard installation.
-->
The following command-line options are available for Windows Setup (setup.exe). Beginning with Windows 10, version 1607, you can use a setupconfig file as an alternative to passing paramters to Windows Setup on a command line. For more information, see Windows Setup Automation Overview.
/1394Debug
Enables kernel debugging over an IEEE 1394 (FireWire) port while Windows is running and during the WindowsPE configuration pass of Windows Setup.
Syntax
/1394Debug:<channel> [BaudRate:<baudrate>] Examples Remarks The default value for <channel> is 1. <baudrate> specifies the baud to use when Windows transfers data during debugging. The default value is 19200, but can also be set to 57600 or 115200. /AddBootMgrLast
Instructs Windows Setup to add the Windows Boot Manager as the last entry in the UEFI firmware boot order.
Syntax
/AddBootMgrLast Remarks This option is only supported on UEFI PCs running Windows PE 4.0 or later. /Auto
Performs an automated upgrade to Windows 10 or Windows 8.1 volume license editions only.
Syntax /Auto {Clean | DataOnly | Upgrade} Parameters
/BusParams
Specifies the PCI address of a 1394, USB, or NET debug port.
Syntax
/BusParams:<bus.device.function> Examples Remarks The bus, device, and function numbers must be in decimal format. For more info, see Setting Up Kernel Debugging with USB 2.0. /CompactOS
Specifies whether to use the Compact OS feature to save hard drive space.
Syntax
/CompactOS {Enable | Disable} Parameters
Examples Remarks By default, Windows Setup determines whether to use this feature automatically. To learn more about Compact OS, see Compact OS, single-instancing, and image optimization. /Compat
Instructs Windows Setup how to handle compatibility scans and messages.
Syntax
/Compat {IgnoreWarning | ScanOnly} Parameters
Examples This command works with other switches. To run Windows Setup in the background without any UI: To ignore common disclaimers in the UI, for example, language changes: Often an IT Pro will look at the compat XML if Windows Setup finds compatibility issues. Use /CopyLogs to collect Windows Setup logs: Remarks This option is available in Windows 10. If you launch Windows Setup with /Compat ScanOnly:
/CopyLogs
Windows Setup will copy or upload compressed logs upon failure to the specified location assuming machine/user has permission and network access to location.
Syntax
/CopyLogs <location> Parameters
Examples Remarks Accepted parameters are local file paths and UNC network paths. Execution runs in the system context, so it may not have permissions to copy to locations that require user permissions. /Debug
Enables kernel debugging over a communications (COM) port when Windows is running, and during the WindowsPE configuration pass of Windows Setup.
Syntax
/Debug:<port> [BaudRate:<baudrate>] Parameters
Examples /DiagnosticPrompt
Specifies that the Command Prompt is available during Windows Setup.
Syntax
/DiagnosticPrompt {Enable | Disable} Parameters
Examples Remarks This option is available in Windows 10, Version 1703. /DynamicUpdate
Specifies whether Windows Setup will perform Dynamic Update operations (search, download, and install updates).
Syntax
/DynamicUpdate {Enable | Disable | NoDrivers | NoLCU | NoDriversNoLCU} Parameters
Examples Remarks NoDrivers, NoLCU and NoDriversNoLCU are new for Windows 10 Insider builds. When NoDrivers, NoLCU or NoDriversNoLCU is specified, Dynamic Update operations will be performed but drivers and/or the latest cumulative update acquisition will not be performed. /DynamicUpdate can be used with /SkipFinalize to control Dynamic Update operations; /DynamicUpdate is ignored when used with /Finalize. /EMSPort
Enables or disables Emergency Management Services (EMS) during Windows Setup and after the server operating system has been installed.
Syntax
/EMSPort: {COM1 | COM2 | UseBIOSSettings | Off} [/EMSBaudRate:<baudrate>] Parameters
Examples /Finalize
Instructions Windows Setup to finish previously started update operations on the down-level OS, followed by an immediate reboot to start the offline phase.
Syntax
/Finalize Examples Remarks This option is new for Windows 10 Insider builds. /Finalize should not be specified with the /NoReboot option. Windows Setup will return error MOSETUP_E_FINALIZE_RESUME_FAILURE (0xC1900132) if /Finalize is called and the device is not in the proper state to resume after running /SkipFinalize. See /SkipFinalize. /InstallDrivers
Adds .inf-style drivers to the new Windows 10 installation.
Syntax
/InstallDrivers <location> Parameters
Examples Remarks This option is new for Windows 10. The driver .inf can be in a folder within the specified location. The command will recurse through the specified location. /InstallFrom
Specifies a different Install.wim file to use during Windows Setup.
Syntax
/InstallFrom<path> Parameters
Examples
This option also be used with split image files (.swm). Select the first split image file in the series
Remarks This enables you to use a single preinstallation environment to install multiple versions of Windows images. For example, you can use a 32-bit version of Windows Setup to deploy a 64-bit Windows image. You can also use an answer file for cross-platform deployments. For more information, see “Creating a WIM for Multiple Architecture Types” in Windows Setup Supported Platforms and Cross-Platform Deployments /InstallLangPacks
Adds language packs (lp.cab) to the new Windows 10 installation.
Syntax
/InstallLangPacks <location> Parameters
Examples Remarks This option is new for Windows 10. The language packs can be in a folder within the specified <location>. The command installs all lp.cab files and language capabilities such as text-to-speech recognition, in the folder and subfolders at the specified <location>. /m
Instructs Windows Setup to copy alternate files from an alternate location. This option instructs Windows Setup to look in the alternate location first, and, if files are present, to use them instead of the files from the default location.
Syntax
/m:<folder_name> Parameters
Examples To copy an updated C:Program FilesMessengerMsmsgs.exe file into the Windows installation, create the following folder structure on the ProSources$OEM$$ProgsMessengerMsmsgs.exe installation source by using the Setup command: If you replace a file that Windows file protection protects, you must also copy the updated file to the local sources to be installed with Windows. For example, you may copy the file to the C:Windowsi386 folder. The file name must be the same as the name that is used in Windows Setup. For example, add the following file and folder structure to your $OEM$ directory:Prosources$OEM$$$i386msmsgs.ex_. If you use files that are not on an installation share, you must specify the folder name. In this example the <folder_name> is C:additional_files, where C:additional_files is your customized $OEM$ directory. For example: C:additional_files$$i386msmsgs.ex_.
If you change resources in your replacement files, you must add the updated Multilanguage User Interface (MUI) files to the installation.
Remarks You must know where the files will be installed on the Windows installation. All the additional files must be copied to an $OEM$ folder in your installation sources or in the <folder_name>. The $OEM$ structure provides a representation of the destination installation disk:
/MigNEO
Tells Windows Setup to perform an upgrade of Windows without additional offline phase optimizations.
Syntax
/MigNEO Disable Remarks This option is available in Windows 10, version 1803 and later. /MigrateDrivers
Instructs Windows Setup whether to migrate the drivers from the existing installation during the upgrade.
Syntax
/MigrateDrivers {All | None} Examples Remarks You can specify All or None. By default, Windows Setup decides which is best for each individual driver based on the install choice. You can use this switch with /InstallDrivers, though it's not required. /NetDebug
Enables kernel debugging over the network.
Syntax
/NetDebug:hostip=<w.x.y.z>,port=<n>,key=<q.r.s.t>[,nodhcp][,busparams=<n.o.p>] Parameters
Examples Remarks Use hostip to identify the IP address of the host computer. Use port to identify the port. The default start port is 49152, and the default end port is 65535. Use key to provide a password to set up a secure connection. Use nodhcp to avoid using a DHCP connection. (optional). Use busparams to select the bus number, device number, and function number of an adapter for a specific PCI bus device. (optional). For additional details, see Setting Up Kernel-Mode Debugging over a Network Cable Manually. /NoReboot
Instructs Windows Setup not to restart the computer after the down-level phase of Windows Setup completes.
Syntax
/NoReboot Examples Remarks This option is new for Windows 10. The /NoReboot option enables you to execute additional commands before Windows restarts. This option suppresses only the first reboot. The option does not suppress subsequent reboots. /PKey
Supplies Windows Setup with the specific product key.
Syntax
/PKey <product key> Examples Remarks This option is new for Windows 10. /Priority
Tells Windows Setup to increase the thread priority from low to normal for feature updates through Windows Update.
Syntax
/Priority {Normal | Low} Parameters
Examples Remarks This option is available in Windows 10, version 1709 and later. Low priority is new for Windows 10 Insider builds. Media based installations already run at Normal priority by default but can be decreased to Low priority. /PostOOBE
After Windows Setup is complete, run a script.
Syntax
/PostOOBE<location> [setupcomplete.cmd] Parameters
Examples Path to folder that contains a script with the name setupcomplete.cmd. setupcomplete.cmd is copied to $Windows.~BT to be run after OOBE. Remarks This option is available in Windows 10. /PostRollback
Instructs Windows Setup to run a script if the feature update fails to install and rolls back the changes, or if the user chooses to uninstall the feature update and go back to a previous version of Windows.
Syntax
/PostRollback <location> [/PostRollbackContext {system | user}] Parameters
Examples Remarks This option is available in Windows 10. /PostRollbackContext option is available in Windows 10, version 1803 and later. The /PostRollbackContext option allows you to specify whether the script runs in the context of the System account or the account of the signed in user. By default, updates from media run setuprollback.cmd in user context, which requires the first user who logs in post-upgrade to have administrator rights. For updates from Windows Update, setuprollback.cmd runs in system context, regardless of the rights of the first logged-in user. Windows Setup will copy setuprollback.cmd to $Windows.~BT to be run after OOBE. /Quiet
This will suppress any Windows Setup user experience including the rollback user experience.
Syntax
/Quiet Examples Remarks This option is available in Windows 10. /ReflectDrivers
Specifies the path to a folder that contains encryption drivers for a computer that has third-party encryption enabled.
Syntax
/ReflectDrivers <location> Parameters
Examples Remarks This option is available in Windows 10, version 1607. Make sure that <location> contains only a minimal set of encryption drivers. Having more drivers than necessary can negatively impact upgrade scenarios. /ResizeRecoveryPartition
Specifies whether it's OK to resize the existing Windows Recovery Environment (Windows RE) partition or create a new one during installation.
Syntax
/ResizeRecoveryPartition {Enable | Disable} Parameters
Examples Remarks To learn more about Windows RE partitions, see UEFI/GPT-based hard drive partitions and BIOS/MBR-based hard drive partitions. /ShowOOBE
Specifies whether the user is required to interactively complete the out of box experience (OOBE).
Syntax
/ShowOOBE {Full | None} Parameters
Examples Remarks This option is available in Windows 10. /SkipFinalize
Instructions setup to start update operations on the down-level OS without initiating a reboot to start the offline phase.
Syntax
/SkipFinalize Examples Remarks This option is available in Windows 10 Insider builds. /SkipFinalize will prepare the update without committing. This allows for the commit to be completed using /Finalize followed by an immediate reboot of the device. This is the preferred approach to pending the update as the /NoReboot option will commit the changes but suppress the first reboot to allow for additional tasks. /SkipFinalize will not automatically instruct Windows Setup to run silently on the down-level OS while the computer is in use. Use /Quiet to suppress the Windows Setup user experience, and /Priority Low to prevent user impact. /SkipFinalize should not be specified with the /NoReboot option. See /Finalize. /Telemetry
Specifies whether Windows Setup should capture and report installation data.
Syntax
/Telemetry {Enable | Disable} Parameters
Examples /TempDrive
Instructs Windows Setup to put temporary installation files on the specified partition.
Syntax
/TempDrive <drive_letter> Parameters
Examples Remarks This option is available in Windows 10, version 1607. For an upgrade, the /TempDrive option affects only the placement of temporary files. The operating system is upgraded in the partition from which you run the setup.exe file. /Unattend
Enables you to use an answer file with Windows Setup.
Syntax
/Unattend:<answer_file> Parameters
Examples Remarks This is known as an unattended installation. You must specify a value for <answer_file>. Windows Setup applies the values in the answer file during installation. When /Unattend is used, /Auto cannot be used. /Uninstall
Determines whether Windows will include controls that allow the user to go back to the previous operating system.
Syntax
/Uninstall {Enable | Disable} Parameters
Examples Remarks This option is available in Windows 10. /USBDebug
Sets up debugging on a USB port.
Syntax
/USBDebug:<hostname> Parameters
Examples Remarks Debug data is effective on the next reboot. /WDSDiscover
Specifies that the Windows Deployment Services (WDS) client should be in discover mode.
Syntax
/WDSDiscover Examples To start the WDS client in dynamic discover mode, run the following command: Remarks If you do not specify /WDSServer WDS searches for a server. /WDSServer
Specifies the name of the Windows Deployment Services (WDS) server that the client should connect to.
Syntax
/WDSServer:<servername> Parameters
Examples To start the Windows Deployment Services client in static discover mode, run the following command: Remarks To use this setting, you must also use the /WDSDiscover option. <servername> can be an IP address, a NetBIOS name, or a fully qualified domain name (FQDN). Windows Setup Exit Codes
Related topicsComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |