M365Con 2027 – free online conference · 11–22 Jan 2027 · 120 sessions m365con.net

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.

✦ CONCEPTSysprepM365.FM
Title graphic: Sysprep (Concept)

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.

TypeConcept
KindMethod
DocumentationSysprep – Microsoft Learn learn.microsoft.com
Relationship map of Sysprep: linked topics

Related topics in brief

Topics linked to Sysprep, each briefly explained:

All relationships of Sysprep, grouped by type of relationship:

Broader topic

Broader topics of Sysprep:

Related to

Topics related to Sysprep:

Glossary

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:

Sources

Maintained by Mirko Peters (Microsoft MVP) · Last updated: