Sysprep Switches
The following table shows the different switches that can be used with sysprep.exe:
| Switch | Function |
|---|---|
| -activated | Tells Sysprep NOT to reset the grace period for Windows Product Activation - only used if system was activated in the factory. |
| -audit | Reboots system into Factory mode without generating new SIDS or processing the [OEMRunOnce] section of winbom.ini. Used only when the system is already in factory mode. |
| -clean | Cleans the critical devices database used by the [SysprepMassStorage] section of Sysprep.inf. |
| -factory | Forces restart in network-enabled state and bypasses Windows Welcome (OOBE) and mini-setup screens. Used for updating drivers, running plug and play, and configuration in a factory environment. |
| -forceshutdown | Forces the computer to shutdown after Sysprep is complete. |
| -mini | Forces Windows XP to use the mini-setup wizard the first time it is started after running Sysprep (Corporate Edition only - the Home Edition always goes to the Windows Welcome screen). |
| -msoobe | Forces Windows XP to use the Windows Welcome the first time it is started after running Sysprep. |
| -noreboot | Used to modify registry keys without forcing a reboot at the end of Sysprep for testing purposes only. Do not use in a production environment. |
| -nosidgen | Tells Sysprep not to generate new SIDS. Used only when NOT duplicating the computer Syprep is being run on or when pre-installing Domain Controllers. |
| -pnp | Forces full Plug and Play device enumeration when used with the mini-setup wizard. Cannot be used with Windows Welcome. |
| -quiet | Forces Sysprep to run without displaying confirmation messages or dialogs on screen. Used in conjunction with unattended installations. |
| -reboot | Forces reboot at the end of Sysprep so that Syprep can be verified before system is resealed and delivered to customer. |
| -reseal | Used to prep system for delivery to customer. This will wipe Event Viewer logs. This is the last step in using Sysprep. |