Create a Custom Windows ISO with Sysprep (No WDS or PXE Required)

Skip the complexity of deployment servers. Learn how to build a custom Windows ISO with your apps and settings pre-installed using Sysprep and DISM - just burn it and install like a regular Windows disc.

Published 2024-10-08 by TechNet New England

Deployment servers like WDS and PXE are great for large environments, but sometimes you just need a simple bootable ISO that installs Windows with your apps and settings already configured. Maybe you're setting up 5-10 machines for a small client, or you want a consistent baseline for your shop without maintaining deployment infrastructure.

This guide walks you through creating a custom Windows ISO using Sysprep and DISM. The result is a bootable disc (or USB) that installs Windows just like the original Microsoft media - except it includes your software, drivers, and configurations.

What You'll Need

Step 1: Install Windows on Your Reference Machine

Start with a clean Windows installation on a PC or virtual machine. This will be your "golden image" that gets cloned to the ISO.

Tip: Use a VM if possible. It's easier to snapshot and retry if something goes wrong.

Step 2: Enter Audit Mode

When you reach the Windows Out-of-Box Experience (OOBE) - the screen asking you to select your region - press Ctrl + Shift + F3.

This boots Windows into Audit Mode as the built-in Administrator. You'll see a Sysprep dialog box appear - just minimize it for now.

Step 3: Customize Your Image

Now install everything you want in your golden image:

Important:

Step 4: Run Sysprep to Generalize

Once your image is configured, run Sysprep to prepare it for capture:

C:\Windows\System32\Sysprep\sysprep.exe /generalize /oobe /shutdown

Or use the GUI: open the Sysprep dialog, select "Enter System Out-of-Box Experience (OOBE)", check "Generalize", and choose "Shutdown".

What this does:

Warning: Do not power on the reference machine after Sysprep completes. If it boots, you'll need to run Sysprep again.

Step 5: Boot to WinPE and Capture the Image

Boot the reference machine from the Windows installation media (USB or DVD). On the first screen, press Shift + F10 to open a command prompt.

First, identify your drive letters:

diskpart
list vol
exit

Note which drive letter is your Windows installation (usually D: in WinPE) and where you'll save the image (USB drive or network share).

Capture the image with DISM:

dism /capture-image /imagefile:E:\install.wim /capturedir:D:\ /name:"Windows 10 Custom" /compress:maximum

Replace E: with your destination drive and D: with your Windows partition. This creates a compressed WIM file containing your entire configured Windows installation.

Step 6: Build Your Custom ISO

Now you'll replace the standard install.wim on the Windows installation media with your custom one.

Extract the contents of the original Windows ISO to a folder (e.g., C:\ISO_Files). You can use 7-Zip or mount the ISO and copy the files.

Replace the file at sources\install.wim (or install.esd) with your captured install.wim.

Create the new ISO using oscdimg from the Windows ADK:

oscdimg -m -o -u2 -udfver102 -bootdata:2#p0,e,bC:\ISO_Files\boot\etfsboot.com#pEF,e,bC:\ISO_Files\efi\microsoft\boot\efisys.bin C:\ISO_Files C:\CustomWindows.iso

This creates a bootable ISO that works with both BIOS and UEFI systems.

Alternative: Use a Tool

If the oscdimg command looks intimidating, tools like AnyBurn or PowerISO can create bootable ISOs from the folder contents. Just make sure to use the original boot files.

Step 7: Test Your ISO

Before deploying to real hardware, test your ISO in a VM. Boot from it, run through OOBE, and verify:

Tips for Maintaining Your Image

When This Approach Makes Sense

This method is ideal for:

For larger environments or frequent deployments, consider MDT (Microsoft Deployment Toolkit) or WDS. But for simplicity and portability, a custom ISO is hard to beat.

Questions about Windows deployment or imaging? Contact us - we're happy to help.