Windows 8.1 – How to Complete Restore Using a VHDX File

backupvhdwindowswindows 8.1

Let me please explain the scenario what I went through.

I have a Transcend SSD which I use to boot my PC which I upgraded from Windows 8 to Windows 8.1.

I have two other hard disk drives (one tera byte and other is 320 GB). Yesterday I received a notification from the SSD utility that there is a firmware update available. I read the instructions which came along it which stated that the drive will be completely erased if I update it. Naturally I had to backup the entire drive. I used the command :

wbAdmin start backup -backupTarget:F: -include:C: -allCritical -quiet

The F drive was my other hard drive of 320 GB (Single partition).

It took a while and came the message that the backup has been done successfully.

I made a system restore disk using the utility from the control panel.

I then made the firmware update usb drive by the utility provided and then booted from the USB and successfully updated the firmware.

Then I booted from the system restore disk I created earlier to restore my old image. However when I tried to restore it, it tried to restore it on my other hard drive instead. I then went to command prompt, used the diskpart command and accidentally selected the wrong drive (the one which contained my backup) and used the clean command.

And there my whole backup was gone!

I then installed a fresh OS using my original DVD (of Windows 8) on the SSD. I tried the recovery tools and all I was able to recover is my VHDX file (which is usually inside the folders created by the wbAdmin command). I tried mounting the image and thankfully it is safe and I can mount it.

Now the thing is that I want to write the complete VHDX file to my SSD so that I can get back my old and working OS.

Can anyone please help me with the things I have? I just have my VHDX file.

Best Answer

I realize this is two years too late but having just gone through a similar experience with Windows 10, I finally came across this post which helped me resolve my problem. I needed to convert the VHD/VHDX from my Windows Backup to a Windows Imaging Format (WIM) disk file and restore that to my C: drive.

Before starting, you'll need the exact path to the VHDX for the Mount command.

Assuming the system image backup or other VHDX resides on an external drive D: (change the D: drive letter to match the location of your backup VHD/VHDX):

  1. Connect the backup drive containing the backup to another Windows PC.
  2. Open a PowerShell command window as Administrator.
  3. Create a "Mount" and "Capture" folder on D:.

md D:\Mount, D:\Capture

  1. Mount the VHDX at D:\Mount.

Mount-WindowsImage -ImagePath "D:\full_path_to.vhdx" -Path D:\Mount -Index 1

  1. Write the "Mount" folder to a new WIM file.

New-WindowsImage -CapturePath D:\Mount -Name Win10Backup -ImagePath D:\Capture\Backup.wim -Description "Windows 10 Backup" -Verify

  1. Once completed, unmount the VHDX and safely disconnect the backup drive.

Dismount-WindowsImage -Path D:\Mount -Discard

On the computer to restore, connect the drive containing the WIM file, boot up the Windows 10 setup media and from the install screen select "Repair Computer" > "Troubleshoot" > "Advanced Options" > "Command Prompt".

(You may need to use DiskPart from the command line to make sure C: refers to your desired C: partition.)

From the command line, format and then restore the C: drive from the WIM:

format c: /q

Dism /Apply-Image /ImageFile:D:\Capture\Backup.wim /Index:1 /ApplyDir:C:\

Once completed, cross your fingers and reboot.

Related Question