How to Run Sysprep in Windows 10 and 11 | Step by Step  

How to Run Sysprep in Windows 10 and 11 | Step by Step


Table of Contents
  1. What Does Sysprep Do in Windows 10
  2. How to Sysprep Windows 10 Step by Step
    1. Frequently asked questions about Sysprep
  3. Create and Deploy Windows 10/11 System Image without SID (Easier)
    1. How to capture Windows 10 image using Sysprep
    2. How to deploy Windows 10 image to multiple computers without SID
  4. Verdict

What Does Sysprep Do in Windows 10

What is Sysprep (System Preparation) in Windows 10/11? Built into Windows, it is often used to prepare a system image, which can be deployed to multiple computers. The preparation process is also called generalizing the image.

Sysprep Windows

Each time you install Windows on a computer, the operating system assigns an unique SID (Security Identifier) on it. If you create a system image for the purpose of installing the same OS on multiple computers, the SID info will be copied to the other devices as well, which may cause some problems.

To avoid WSUS incompatibility and such issues caused by SID duplications on the same network, you must remove the computer-specific information. Luckily, Microsoft provides Sysprep to not only clear the SID information, but also generalize new SIDs for client computers. It helps you to prepare a Windows image for deployment.

You still need to capture and deploy the image

After generalizing the Windows 10/11 OS, you need to capture the image for deployment in WinPE.  More >>

How to Sysprep Windows 10 Step by Step

You can use Sysprep to remove computer-specific information (SID, GUID, etc.) and generalize the image. Here I will take Windows 10 as an example.

Step 1. Configure a reference computer.

Before generalizing the image and deploying it, first you need to configure a reference computer. This means:

Step 2. Run Sysprep in Windows 10.

To run Sysprep in Windows 10, press Windows logo key + X at the same time. Select Command Prompt (Admin) from the menu.

Type the following command and press Enter, this will change the working directory to “Sysprep”.

cd \Windows\System32\Sysprep

Step 3. Generalize system image using Sysprep.

Then, enter this command to generalize system image:

sysprep /generalize /shutdown

*If you are running Windows 10/11 in a VM, you can generalize the OS by: sysprep /generalize /mode:vm

Optionally, you can type sysprep and press Enter to open Sysprep GUI mode. Choose Enter System Out-of-Box Experience (OOBE) and tick the Generalize checkbox. Select Shutdown from the drop-down menu. Then click OK.

Sysprep

✍Tips:

Step 4. Capture a Syspreped Windows 10 image.

If you want to use Sysprep for cloning Windows OS over computers, you still need to prepare the image for deployment.

After generalizing the image using Sysprep, the reference device will shut down. Next time your start the device, it will boot into OOBE.

📢Note: Don't power the reference computer on until you are ready to capture an image. Otherwise, you'll need to repeat the Sysprep process.

Then, to create a system image for deployment, you will need to do the following in conventional means:

>> Create a bootable WinPE USB drive, which can be used to capture and deploying the Windows image.

>> Boot the computer from the bootable USB drive. You may need to enter BIOS (by press specific key during startup) and select the USB as the first boot option. Then the computer should be able to boot into WinPE.

windows 11

>> Access Command prompt from WinPE, then you can use DISM to capture Windows 10 image. For example:

DISM /capture-image /imagefile:C:\IoTOS.wim /CaptureDir:C:\ /Name:"Windows 10 IoT Enterprise"

>>This will capture an image of the Windows partition and store it on C: drive. And you can use the bootable USB drive again to deploy the system image.

For specific steps, please refer to this Microsoft document.

Frequently asked questions about Sysprep

Care must be taken when using Sysprep, as it has some limitations. Here are some frequently asked questions.

How many times can you Sysprep Windows 10?

💬On a single system image, you can run Sysprep up to 8 times. After running this tool 8 times, you must recreate your system image.

Why my Windows 10 Sysprep fails?

💬Sysprep may fail if you install or update Microsoft Store apps before generalizing a system image.

To prevent Microsoft Store from updating apps, you can unplug the Internet connection or disable Automatic Updates in Audit mode before creating the image.

What is Audit mode for?

💬It allows you to make additional changes to the Windows installation before you send it awayor capture the image for deployment. You can install drivers included in a driver package, install apps, or make other updates that require the Windows installation to be running.

If you want to run Sysprep in Audit Mode, type the following command (under the Sysprep directory):

sysprep /audit

Last but not least, Sysprep itself doesn't has the ability to create a system image. This means you still need other tools to capture the prepared Windows OS.

Create and Deploy Windows 10/11 System Image without SID (Easier)

Since Sysprep is only for generalizing image, you still need a simple and reliable tool to capture and deploy system image. Although there are some Windows built-in tools can help you do that, you will find the whole process complex and unfriendly to novices.

Therefore, I would like to introduce you an easier way to complete the series of operations - that is using the all round Windows backup & restore utility Qiling Disk Master Technician.

Capture and deploy image 

Use the Create Bootable Media tool to prepare a WinPE drive.

Create a Windows 10/11 image via the System Backup feature.

Deploy system to unlimited computers over network with the easy-to-use Image Deploy Tool (AID).

Compatible with Windows 11, 10, 8.1, 8, 7, Vista, XP (all editions, 32-bit and 64-bit) and Server 2022, 2019, 2016, 2012, 2008, 2003 (including 32/64-bit, R2/SBS/WHS).

How to capture Windows 10 image using Sysprep

💻Preparations you need to do:
  • Make sure that all the required computers are on the same network, and all client computers support PXE boot (if not, exclude it please).
  • The disk sequence numbers for storing system in target computers must be the same. Move out other disks and only keep the destination disk.
  • Launch Qiling Disk Master to make your partitions be marked. Then go to Tools tab to create bootable media.

1. First, press Win + R and enter "sysprep" in the textbox to find Sysprep.exe. Run it and choose Enter System OOBE, tick Generalize option, and select Shutdown. This step is to remove SID and avoid related issues after deployment.

sysprep remove sid

2. Click OK and the computer will shutdown automatically. You can then boot the computer into WinPE with the bootable media you created, and perform a full system backup with the pop-up Qiling Disk Master.

📢Note: Please boot into WinPE right after running sysprep, or the new SID information will be created.

full system backup

How to deploy Windows 10 image to multiple computers without SID

1. When the syspreped Windows image is ready, you can go to Tools tab, choose Image Deploy Tool to deploy the system image you just created.

2. In the AID window, choose Create WinPE automatically to create a bootable Windows PE ISO.

In case the drivers being incompatible with your hardware and the WinPE cannot start up the client computers, you can also choose Create bootable WinPE ISO manually to add custom drivers into WinPE.

📢Note: There must be a DHCP server in the LAN for system deploy over network. If not, tick Enable DHCP.

ISO  File

3. When the tool shows "The service has started, waiting for connect...", it's time to start all the client computers. If all the settings are correct, they should boot into AID recovery environment, otherwise you can enter BIOS to set the network boot as the first boot option.

Boot option

4. Here you can see the status for all client computers. Once a computer connects to AID successfully, you will get "Client computers connected". When all the client computers are ready, check I confirm all the... and click Next.

5. Here comes the guide for deploy configuration. For more details, please refer to image deployment.

a. Choose Browse to find your system image.

b. Select the client computers you need or click All to select all connected computers.

c. Input the destination disk number. If all the client computers have only one disk reserved, the disk number is 0.

d. Decide how many computers will be deployed each time.

e. Click Settings to set computer name. Then click OK.

Set IP: click it to preset IP address.
Universal Restore: you can deploy system image to computers with different hardware.

6. After confirming your operations, you can click Start Deploy. Then choose whether to shut down or restart the client computers.

Verdict

Although Windows users are given many tools to deploy system image remotely, you must prepare the system image using Sysprep in Windows 10. For many users, Sysprep is time consuming and complex, and sometimes it even goes wrong.

However, the Image Deploy Tool of Qiling Disk Master makes a real difference. By using it, you don’t need to be worried about Sysprep limitations. What’s more, it serves you well as an Acronis Snap Deploy alternative.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!