Windows 7: Using sysprep


The Microsoft tool “Sysprep.exe” will allow us to prepare our system for deployment, for cloning or even simply to return to a factory configuration like during the first use of the operating system.



You can find the Microsoft tool “Sysprep.exe” here:




Graphical Case

Run the sysprep tool located in the directory “C:\Windows\System32\sysprep”


Several options are possible :

System cleanup Action

  • Enter OOBE (Out of Box Experience) mode : this mode allows us to restart the computer and thus be able to configure the system settings (System account, network security, time zone, etc…).
  • Between audit system mode : this mode allows us to restart the computer in audit mode and able to integrate drivers or install applications. It is possible to restart the computer as many times you want, it will be always in audit mode.


Check the generalizing box allows you to remove any setting that is specific to the system as “its name”, “its logs”, “its restore points”, and “its hardware informations”. This option is required if you want to eventually create a deployment image.

Several “shutdown Options” are possible :

  • Stop the system : Shutdown the computer after the sysprep
  • Exit : Once sysprep is finished, the computer is available again
  • Restart : Restart the computer after the sysprep



Command line Case

You can run the sysprep.exe command-line, here are a few examples.



SEE the above explanations


/ generalize

SEE the above explanations



SEE the above explanations



SEE the above explanations


/ quiet

Remove the display when using the sysprep



To switch an unattend.xml answer file when using the sysprep

Fondateur de, Passionné avant tout, je partage mon quotidien à travers ce site. #sysadmin #microsoft #vmware #tech #geek @sysadvisor


Please enter your comment!
Please enter your name here