DISM Clone Disk: Full Drive Copy Guide
In this article
Yes, you can use DISM (Deployment Imaging Service and Management) to clone a disk, but with an important caveat: DISM works on volumes (partitions), not on the entire physical disk as a single operation. To clone a whole disk, you capture each partition as a WIM image and apply it to the target disk's corresponding partitions. This is a reliable, scriptable method, especially for Windows systems, and it preserves file permissions, ACLs, and other metadata. Before you start, ensure the target disk is at least as large as the source disk's used space, and back up any data on the target disk—it will be completely overwritten.
What You'll Need
- A Windows PC (Windows 10 or 11) with DISM available (it's built-in).
- The source disk (the one you want to clone) and the target disk (the one you'll write to).
- Both disks must be connected to the same PC, or you can use a USB-to-SATA adapter for one of them.
- Administrator privileges on the PC.
- A temporary location to store the WIM image files (e.g., an external drive with enough free space—the image will be roughly the size of the used space on the source partitions).
- If cloning a system disk (with Windows installed), you may need to boot from a Windows installation USB or recovery environment to unlock the partitions.
Step-by-Step
- Identify your disks and partitions. Open Command Prompt as Administrator. Run
diskpart, thenlist diskto see all disks. Note the disk numbers for source and target. Runselect disk X(replace X with source disk number), thenlist partitionto see the partitions. Note the partition numbers and their sizes. Exit diskpart withexit. - Prepare the target disk. In the same Command Prompt, run
diskpartagain. Select the target disk (select disk Y), then runcleanto wipe it. This removes all existing partitions—be absolutely sure you selected the correct disk. Then create partitions to match the source layout. For a typical Windows system, you'll need an EFI system partition (100 MB, FAT32), a Microsoft Reserved partition (16 MB, no letter), and the main Windows partition (NTFS). Usecreate partition efi size=100,format quick fs=fat32,create partition msr size=16,create partition primary,format quick fs=ntfs, andassign letter=C(or another letter). Adjust sizes if your source has different partition sizes. Exit diskpart. - Assign drive letters to source partitions. If the source partitions don't already have letters (common for system partitions), use diskpart to assign temporary letters. For example,
select partition 1,assign letter=S, and so on for each partition you need to capture. - Capture each source partition with DISM. For each partition, run
dism /Capture-Image /ImageFile:D:\clone\part1.wim /CaptureDir:S:\ /Name:"Partition 1" /Compress:max /CheckIntegrity. ReplaceD:\clone\with your temporary storage path,part1.wimwith a unique name,S:\with the actual drive letter of the partition, and the name in quotes with something descriptive. Repeat for all partitions you want to clone. The /CheckIntegrity flag verifies the image, but adds time. - Apply the images to the target partitions. For each captured WIM, run
dism /Apply-Image /ImageFile:D:\clone\part1.wim /Index:1 /ApplyDir:T:\whereT:\is the drive letter of the corresponding target partition (e.g., C:\ for the main partition). Apply in the same order as the partitions. After applying, the target partitions will contain the data. - Make the target disk bootable (if cloning a system disk). After applying the Windows partition, you need to recreate the boot configuration. Boot from a Windows installation USB, open Command Prompt (Shift+F10), and run
diskpartto assign a letter to the EFI partition (e.g.,assign letter=E) and to the Windows partition (e.g.,assign letter=C). Then runbcdboot C:\Windows /s E: /f UEFI(or/f BIOSfor legacy BIOS). This creates the boot files. Exit. - Verify the clone. Shut down the PC, disconnect the source disk, and attempt to boot from the target disk. If it boots successfully, the clone is good.
Common Mistakes
- Selecting the wrong disk in diskpart. Double-check disk numbers and sizes. A wrong
cleancommand will wipe your data. - Not creating the correct partition layout. If the target disk lacks the EFI or MSR partitions, Windows won't boot. Match the source layout exactly.
- Capturing a partition that is in use. If the partition is locked (e.g., the Windows partition while running), DISM will fail. You must boot from a recovery environment or Windows PE.
- Running out of space for WIM files. The WIM files can be large. Ensure your temporary storage has enough free space.
- Forgetting to assign drive letters. Without letters, DISM cannot access the partitions.
Tips
- Use
/Compress:maxto reduce WIM size, but it takes longer to capture. - Always use
/CheckIntegritywhen capturing and applying to ensure data integrity. - If you're cloning a non-system disk (data only), you can skip the boot configuration step.
- For a simpler whole-disk clone, consider using a dedicated tool like Clonezilla or Macrium Reflect, but DISM is built-in and scriptable.
- Test the clone before relying on it—boot from it and verify your files are present.
Troubleshooting
If the clone doesn't boot: Check the partition layout. Boot from a Windows USB, open Command Prompt, and run diskpart to verify the EFI partition is FAT32 and has the boot files. Re-run bcdboot if necessary. Also ensure the BIOS/UEFI is set to boot from the correct disk.
If DISM fails with "access denied": Run Command Prompt as Administrator. If the partition is in use, boot from a Windows PE environment.
If the target disk is too small: The target must have at least as much space as the source's used space. If not, you'll get an error during apply. Consider using a larger target or shrinking the source partitions first.
If the WIM is corrupted: Re-capture with /CheckIntegrity. Also ensure the storage drive is healthy.
Frequently Asked Questions
Can DISM clone a disk with different partition sizes?
Yes, as long as the target partition is large enough to hold the data. DISM applies the image to the target partition, and it will expand to fill it.
Does DISM clone the boot sector?
No, DISM only copies files. You must recreate the boot configuration using bcdboot, which is why the bootable step is essential for system disks.
Can I use DISM to clone to a smaller SSD?
Only if the used space on the source partitions fits within the SSD's capacity. You may need to shrink the source partitions first.
Is DISM faster than other cloning tools?
It can be, but it depends on hardware. DISM is generally reliable and efficient, but tools like Clonezilla may offer compression and speed tweaks.
Do I need to capture the MSR partition?
No, the MSR partition is not required for booting. It's used by Windows for dynamic disks. You can skip it, but it's safe to create it on the target.
Can I clone a disk while Windows is running?
No, the system partition is locked. You must boot from a Windows installation USB or a recovery environment to capture it.