Sysprep
Concept
Windows tool whose /generalize option removes computer-specific information such as the SID so an installation can be captured and deployed to other PCs. Windows 8.1 and Windows Server 2012 or later allow up to 1001 runs per image.
Relationships
Sysprep falls under the broader topic Golden image. Sysprep is closely related to Azure Image Builder and Azure Virtual Desktop.
Description
Sysprep is the Windows System Preparation Tool. Its generalize step removes computer-specific information such as installed drivers and the computer security identifier (SID), so that a Windows image can be captured and deployed to new PCs. It can be used by itself or together with an unattend answer file. Learn states that the image must be generalized even when it is deployed to similar hardware, and that Windows replaces the SID only on the operating system volume where Sysprep ran, so a computer with several operating systems needs one run per system.
The usual procedure starts in Audit Mode. After customizing Windows, the administrator runs sysprep.exe with the options /generalize, /shutdown and /oobe, then captures the image with DISM. For a VHD that is deployed on the same virtual machine or hypervisor, Learn names the /mode:vm option. Generalizing uninstalls configured devices but does not remove driver packages; for identical hardware an unattend setting, PersistAllDeviceInstalls, keeps the devices.
Learn documents these limits. Sysprep can be run up to 1001 times on one image on Windows 8.1 and Windows Server 2012 or later, and only 3 times on Windows 7, Windows Server 2008 R2 and Windows Server 2008. Installing or updating Microsoft Store apps before generalizing makes Sysprep fail. For Azure Virtual Desktop, the golden image guidance says to remove a domain-joined VM from the domain and to disable antivirus programs before running Sysprep. With custom image templates, Azure Image Builder takes care of generalizing the image with Sysprep.
| Type | Concept |
|---|---|
| Kind | Method |
| Documentation | Sysprep – Microsoft Learn learn.microsoft.com |
Related topics in brief
Topics linked to Sysprep, each briefly explained:
- Golden image – Concept · Broader topic
A custom, preconfigured virtual machine image that bundles the operating system, updates, applications and customizations and is captured as the template for deploying virtual desktops or session hosts; it has to be maintained and updated over time. - Azure Image Builder – Part of Microsoft Azure · Related to
Azure Image Builder is an Azure service that creates customized virtual machine images from a set of instructions you define, using HashiCorp Packer behind the scenes. - Azure Virtual Desktop – Cloud platform by Microsoft · Related to
Cloud-hosted desktop and app virtualisation service on Azure, extendable to hybrid and other hypervisors.
All relationships of Sysprep, grouped by type of relationship:
Broader topic
Broader topics of Sysprep:
Related to
Topics related to Sysprep:
Community wiki
Short info above, community knowledge below: add practical tips, examples or corrections. New contributions are reviewed first; trusted members publish directly.
Experts and companies for this topic
Nobody has listed this topic yet. Add it to your profile.
Experts on related topics
Experts on topics related to Sysprep, each with the topic that connects them:
- Mirko Peters · via Azure Virtual Desktop
Sources
- Sysprep – Microsoft Learn learn.microsoft.com
Maintained by Mirko Peters (Microsoft MVP) · Last updated: