System Preparation Tool (Sysprep) in Microsoft Windows 10

The System Preparation Tool (Sysprep), is meant for System Administrators and OEMs, to automate the deployment of Windows 10/8/7 operating system. Once you have performed the initial setup steps on a single computer, you can run the Sysprep tool to prepare the sample computer for cloning and automate the deployment on other computers. It can be found in the \Windows\System32\sysprep folder.

System Preparation Tool (Sysprep)

System Preparation Tool – Sysprep

You can use Sysprep along with other deployment tools to install Windows operating systems onto new hardware. It prepares a computer for disk imaging or delivery to a customer by configuring the computer to create a new computer security identifier (SID) when the computer is restarted. In addition, the Sysprep tool cleans up user-specific and computer-specific settings and data that must not be copied to a destination computer.

This video demonstrates how to capture a custom Windows system image using the System Preparation Tool (Sysprep) to generalize the installed image and ImageX to capture the contents of the generalized system image for re-deployment to other computers – including different hardware types.

You can get more information about SysPrep at TechNet.

Do note that KB828287 explicitly mentions that Microsoft does not support the following Sysprep scenarios:

  • To create images of an installation that has been upgraded. Microsoft however supports the use of Sysprep to create images of an installation that has been updated with a service pack.
  • To run Sysprep, on a a computer that has been running in production for extended period of time, then create a new image or clone from the computer. Sysprep is designed to prepare new installations of Windows for imaging.
  • To run sysprep after imaging or cloning production computer for the purpose of changing the SID and computername to join the domain and make the computer unique.
  • To install an operating system from an image if the image was created by using a computer that has a different or incompatible Hardware Abstraction Layer (HAL). This limitation applies only to Windows XP and to Windows Server 2003. Starting with Windows Vista, Sysprep includes a Hardware Abstraction Layer (HAL) independent version in the “out of box” installation.
  • To create a new image of a system that was originally created by using a custom OEM installation image or by using OEM installation media. Microsoft only supports such an image if the image was created by the OEM manufacturer.
  • Microsoft also does not support the use of Sysprep to install an operating system from an image if the image was created by using a computer whose motherboard has a different manufacturer, or if the image was created by using a computer with the same configuration but from a different manufacturer.
  • If another user profile has been copied over the default user profile, Microsoft does not support the use of Sysprep to create a new image of the installation.
  • Microsoft does not support using Sysprep to install an operating system from an image if the image was created by using a computer that has a different processor.

You can easily identify a Windows installation that has been created with the Sysprep Tool.

  • Check for a CloneTag value in the registry. Sysprep places the CloneTag value in the HKEY_LOCAL_MACHINE\System\Setup key, noting the date and time the image was prepared for duplication.
  • Look in the HKEY_LOCAL_MACHINE\System\Setup registry key for a cmdline that reads “Setup –newsetup -mini.” This places GUI-mode Setup in the Mini-wizard phase.
  • Check for an OemDuplicatorString value. This used by Original Equipment Manufacturers (OEMs) to place a tag on systems they create. This is added using an answer file (Sysprep.inf) for the Mini-Setup Wizard.
  • Check for the existence of Setupcl.exe. This is the file that changes the Security IDs (SIDs) on the system. Look in the %SystemRoot%\System32 folder for this file.

If you need more information on how to identify when the System Preparation Tool for Windows NT 4.0 is used on a computer visit KB180962. See this post to Resolve issues when you clone Windows installation media using Sysprep tool.

Want to read about Windows Image Boot (WIMBoot)?

Posted by on , in Category Windows with Tags
Anand Khanse is the Admin of, a 10-year Microsoft MVP Awardee in Windows (2006-16) & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.


  1. WrongInfo

    Sysprep does not create or capture an image as you claim in your article. It’s imagex that does that magic.
    Nor does it clear out hardware specific data unless the ‘generalize’ switch it used. Do your homework guys.

  2. Phrase edited/deleted. Most of it has been sourced from the Microsoft links mentioned. 🙂

  3. Harry

    The problem that I have is my windows 8 system fresh install/activation then upgraded to 8.1 would like to sysprep it. generalize/oobe What is the work around even if it is not supported by Microsoft.

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionSetupSysprep] will not allow the builtin administrator user to modify, I suspect a system user could. [HKEY_LOCAL_MACHINESYSTEMSetupupgrade] key deletion does not work.

  4. Blauwpluisje

    That’s why we rather use Microsoft Deployment Toolkit 2013 for creating and distributing images. No sysprep needed, it’s even advised against now when you’d ask support. MDT is way easier and far less time consuming. And if you’d want to tweak the scripts eventually generated for setting up deployment: Those are generated on the fly by MDT, based on what you fill out in the wizard. Maybe you could look at this short course:
    Have a great day, greetings, a fellow Microsofty.

  5. PIV Addiction 69

    translation: Anand Khanse just copied and pasted stuff without understanding it…typical bindi behavior

  6. Racism is a manifestation of the realization of one’s of shortcomings and insecurities, in my opinion. You are out of here!

  7. PIV Addiction 69

    uh, how is it racist to point out that you copy and paste stuff like most pathetic bindis

  8. Adrian

    It’s very important to check the “Generalize” option. Without the “Generalize” option, “SID” is unchanged. Here is a lab that explains:

  9. IntoGraphics


    To augment my work setup, I have an additional self-built PC with older hardware on which I still run Adobe CS4 on Windows 7 and 8.1 (multiboot).
    Because some extremely handy Photoshop and Illustrator plugins and filters which I purchased, were not further developed and made compatible with newer versions of Adobe’s suite.

    My dilemma is that the motherboard in the PC has died (second opinion by a local PC repair shop confirmed this) a Gigabyte GA-X48T-DQ6 motherboard with an Intel Q9550 CPU.
    I still have a Foxconn BlackOps motherboard and Intel Q9650. I want to swap in both. The shop (without trying to sell me anything) suggested that I use the Sysprep tool. But the not supported Sysprep scenarios mentioned in your article, suggest that this is not possible.

    What are my options?

Leave a Reply

Your email address will not be published. Required fields are marked *

6 + 7 =