Windows Image Backup and Restore Guide (Free)

Soldato
Joined
7 Jan 2003
Posts
3,327
Location
Bristol
Hi All

After seeing many posts asking for the best free tools to backup and restore a Windows image, I decided to create this guide showing how to use commands in WinPE (Windows Preinstallation Environment). Everyone with a Windows setup USB already has a WinPE boot disk. You can create a custom WinPE boot disk, but that's another topic.

So let's get started.

In my guide I'm using a Windows VM (virtual machine) with two disks (C: and E:) and a mounted ISO (D:). The mounted ISO will be your Windows setup USB. C: and E: could be two partitions on the same disk, but most people would want backup the Windows partition is a separate internal or external disk.

si1fe6J.png



1) Check and Identify OS and Backup Partitions
1.1 - Insert the Windows setup USB and restart the computer
1.2 - Boot to Windows setup
1.3 - At the first setup screen hold SHIFT+F10 to open a CMD window

YLk9Jz3.png


1.4 - Start Diskpart

OrKIWBe.png


1.5 - "List Volume", to verify drive letters for each partition, these can change from the assigned letter in the Windows OS

ENv34lw.png


For some reason my Windows partition doesn't have a drive letter. If you have the same issue, go to section 2 to assign a drive letter, else skip to section 3.


2) Assign a Drive Letter

2.1 - "List Disk" to show connected disks

ZyRWDLe.png


2.2 - "Select Disk 0", disk 0 is usually the first disk with the OS

SqGdn2y.png


2.3 - "List Partition", to check the correct disk with the Windows OS is selected. A GPT formatted disk will include these four partitions. If you don't see the partitions as listed below go back a step and select another disk

mFRZhzZ.png


2.4 - "Select Partition 3", to select the Windows partition

s8doZDK.png


2.5 - "Assign Letter=W", to give the Windows partition letter W

DNYQDQu.png


2.6 - "List Volume", to confirm the Windows partition now has the driver letter W

Y56SzM5.png


2.7 - "Exit", to leave Diskpart


3) Capture the OS partition to an Image

3.1 - "Dir W:", to verify the source to capture

jZE5Ru0.png


3.2 - "Dir C:", to verify the backup location, e.g. C:\OS_Capture

NAtmbnO.png


3.3 - Capture W: to "C:\OS_Capture\My_Windows_Backup.wim"

Code:
DISM /Capture-Image /CaptureDir:W: /ImageFile:"C:\OS_Capture\My_Windows_Backup.wim" /name:"Windows 11 Pro 24H2 20250416.1510"

un0yvvD.png


3.4 - Exit CMD and restart the computer
3.5 - The captured image

fBxE8DI.png



4) Update (Append) the Captured Image

4.1 - Let's make some changes and capture (append) to the existing image, or repeat the earlier steps to capture to a new image.

yIR9xXg.png


4.2 - Restart and boot using the Windows setup USB
4.3 - Start Diskpart and check drive letters. For my VM I need to reassign a letter to Windows.

cvBiQxK.png


4.4 - Repeat steps in Section 2
4.5 - Letter W assigned to the Windows partition

kp3mknr.png


4.6 - Exit Diskpart
4.7 - Run the Append-Image command to add changes to an existing image, or replace with Capture-Image if you want to create new image file

Code:
DISM /Append-Image /CaptureDir:W: /ImageFile:"C:\OS_Capture\My_Windows_Backup.wim" /name:"Windows 11 Pro 24H2 20250416.1530"

UD1A57n.png


4.8 - Check the images captured to the WIM

Code:
DSIM /Get-ImageInfo /ImageFile:"C:\OS_Capture\My_Windows_Backup.wim"

CcMdEaw.png



5) Restore an Image to the OS Partition

These steps restore an image to the existing OS disk with the partitions already create. If restoring to a new disk, follow the steps in section 6 to create the partitions then return to this section.

Before an image can applied the partition needs to be formatted

5.1 - Restart and boot using the Windows setup USB
5.2 - Start Diskpart and check drive letters. For my VM I need to reassign a letter to Windows.
5.3 - Repeat steps in Section 2
5.4 - Letter W assigned to the Windows partition
5.5 - Method 1 - Format using Diskpart

Code:
Diskpart
Select disk 0
List partition
Select partition 3
Format quick fs=ntfs label="Windows"

whE1I6u.png


5.6 - Method 2 - Format using WinPE

Code:
Format W: /Q /V:Windows

bUdeO7g.png


5.7 - Apply (restore) image index 1 from the backup WIM to the Windows partition, e.g. to undo changes

Code:
DISM /Apply-Image /ImageFile:"C:\OS_Capture\My_Windows_Backup.wim" /Index:1 /ApplyDir:W:

VtgugZy.png
 
Last edited:
Good guide
Though most people just want point and click
To do it
Probably a high % of pc users
Never even used cmd before

Messed around with this in the past
And also created a partition
To store the image and deploy it
Sort of like laptops do a factory restore
Press a F button to deploy it
Assuming laptops even come with built in
Recovery image nowadays
Not used a laptop in years now
Or messed around with that sort of thing either
Forgot how to do so many things I have done in the past
The joys of getting old i guess
 
A GUI is easier, but as we see in a lot of threads most users, including myself, are stuck when the application is no longer free\supported or when something goes wrong and a random error is thrown at you.

With this method you have complete control of your captured images.
 
I do a image backup using the Backup and Restore (windows 7), This is built in to Windows 11. If you go to Start > Control Panel > Change view by (Top right) to small icons its the 2nd 1 along.

This also gives you an option to create a bootable USB stick to go along with it so you can restore it if anything goes wrong.

You can also attach this via Disk management as a 2nd drive if you ever need to grab anything from it without having to restore the image to a drive (Mounts the image and partitions).
 
Last edited:
Back
Top Bottom