Last updated on November 9th, 2026 at 02:11 pm
To run Sysprep in Windows 10, open C:\Windows\System32\Sysprep, run sysprep.exe, choose Enter System Out-of-Box Experience (OOBE), check Generalize, pick Shutdown, and select OK. Sysprep removes PC-specific details so you can capture an image and copy it to other PCs.
Applies to: Windows 10 Pro, Enterprise and Education.
Who Sysprep is for
- Sysprep is for people setting up many PCs with the same image. If you just want a fresh start on one PC, use Reset this PC instead, as in resetting Windows 10 to factory settings.
- Run it on a PC you can wipe. After Sysprep, Windows starts setup again the next time it turns on.
- Don’t install or update Microsoft Store apps before you run it. That can make Sysprep fail.
- Back up anything you need first, for example with a Windows 10 system image.
How do I capture the image after Sysprep?
Start the PC from Windows PE (from the Windows ADK) instead of Windows, then use DISM, for example DISM /Capture-Image /ImageFile:D:\install.wim /CaptureDir:C:\ /Name:"Windows 10", saving to another drive.
Can I undo Sysprep?
No. Once Windows is generalized, there’s no undo button. Restore a system image or backup you made before running it, or finish the setup screens and set the PC up again.
Every Sysprep option is explained in Microsoft’s Sysprep (Generalize) a Windows installation reference.
Preparing a Windows 11 image instead? Follow running Sysprep on Windows 11.
Run Sysprep
- Sign in with an administrator account.
- Open File Explorer and go to C:\Windows\System32\Sysprep.
- Double-click sysprep.exe. Select Yes if Windows asks for permission.

- In System Preparation Tool 3.14, set System Cleanup Action to Enter System Out-of-Box Experience (OOBE).
- Check Generalize.
- Set Shutdown Options to Shutdown, then select OK.

- Wait for the PC to shut down. Don’t turn it back on before you capture the image, or setup will start.
You can also run it from an administrator Command Prompt: %WINDIR%\system32\sysprep\sysprep.exe /generalize /shutdown /oobe.
Customize the image first in Audit mode
Audit mode lets you install apps and drivers before you generalize, without creating a user account.
- To enter it, choose Enter System Audit Mode in Sysprep, or press Ctrl + Shift + F3 on the first setup screen.
- Windows signs in to the built-in Administrator account and opens Sysprep. Leave that window open while you work.
- When you’re done, run Sysprep with OOBE, Generalize and Shutdown, as shown above.
Automate setup with an answer file
An answer file can fill in setup choices such as language, time zone and account settings. Create it with Windows System Image Manager, part of the Windows ADK, then run:
sysprep.exe /generalize /oobe /shutdown /unattend:C:\unattend.xml
If Sysprep fails
- Open C:\Windows\System32\Sysprep\Panther\setupact.log in Notepad and look near the end for the error.
- If the error mentions an app that “was installed for a user, but not provisioned for all users,” remove that Microsoft Store app for that user and try again.
- “Sysprep was not able to validate your Windows installation”: the log often shows Windows was upgraded from an older version. Sysprep is meant for clean installations, so start from a fresh install.
- BitLocker is on: Sysprep stops if the drive is encrypted. Turn off BitLocker first and let it finish decrypting.
- Removing a Store app: in PowerShell as administrator,
Get-AppxPackage -AllUserslists apps. Remove the one named in the log withRemove-AppxPackage, then try again. - Updates are pending: install any Windows updates and restart before you run Sysprep.
Can I use Sysprep to move Windows to a new PC?
It isn’t meant for that on a home PC. For new hardware, moving to a new PC from Windows 10 is the better route. For a single home PC that only needs a clean start, Sysprep isn’t required; the home reimaging routes for Windows 10 are simpler.
Does Sysprep remove my apps and files?
Generalize removes PC-specific details such as drivers and the computer’s security ID. Installed programs stay. It isn’t meant for a PC with personal files, so build your image from a clean installation.

Matt Jacobs writes and maintains the guides on Support Your Tech, which he started in 2017. He spent most of his career keeping small-business PCs running and still takes the occasional consulting job, so the steps here come from fixing the same problems on other people’s computers. Every guide is checked on his own Windows 11, Windows 10, Mac, iPhone and iPad before it goes up.