How to perform sysprep in Windows

Sysprep is the Microsoft system preparation tool used by system administrators. It is often used during the automated deployment of Windows Server-based operating systems. In this article, we shall discuss How to perform sysprep in Windows. Cloning a Windows Server or Windows 10 without first running Sysprep would be problematic because Windows 10 and Windows Server include security identifiers (SIDs) that must be unique from one computer.
Sysprep is most frequently used in virtualized environments to prepare a system image that will be cloned multiple times.
Sysprep generalizes Windows by removing the security identifiers and other computer-specific information. It does this without having the same identity of the previous server.
Also, see How to Fix The Virtual Desktop is Not Sysprep Generalized, How to create a Windows Server reference image using WDS, and SysPrep was unable to validate your Windows Installation.
Benefits of Sysprep
If a user were to boot a physical computer or a virtual machine from a Sysprepped clone, Windows would walk them through the normal setup process.
One of the main benefits of using Sysprep is that users can completely automate Setup by providing the Sysprep deployment with an answer file. The answer file provides answers to the questions that Windows normally asks during Setup.
Using an answer file allows Setup to run in an unattended mode, installing Windows in a predetermined way.
Here is a guide on how to Clone and Sysprep (generalize ) a Windows Server running on VMware Workstation“, and how to Kill Containers and remove unused images from Docker Correctly.
Limitations of generalization
Only use Sysprep when creating an image for new Windows installations. Never use it to modify an already deployed and running Windows setup, as this will destroy the operating system
Note: You can use Sysprep only up to eight times for a given Windows image. After the eighth use, you must recreate the Windows image.
Nonetheless, stripe the server of the parent SID, we have to perform sysprep. You can find this tool in the path below.
c:\windows\system32\sysprep
Alternatively, press the Windows+R to open the run dialog box and type Sysprep. This will open the Sysprep Utility.
On the Sysprep tool select Enter System Out-of-Box Experience (OOBE) and select Generalize then click OK

Consequently, This will start the Sysprep process “Generalise phrase”
After this stage, you server will restart as shown below and will strip of your device of the parent IDs



You are prompted to customize your Windows Server. See how this is done in Windows Server 2016 and Windows Server 2019.

Accept the license term as shown below
Your Server will restart and be ready for use as shown below.
I hope you found this blog post on how to perform sysprep in Windows helpful. If you have any questions, please let me know in the comment session.



