Skip to main content

Can I restore WIM images?

Thread needs solution

Hi,

I just got an upgrade email promo from Acronis.  Before I commit I wanted to ask if Acronis can solve my problem.

I have WIM image that is 20GB in size.  Before I can restore the image I would have to create 2 (or more) partitions.  Below is the command sequence.  I would like to automate it with somehow using Acronis if possible.  

###

Prepare disk:
--------------
SEL DIS 0
CLEAN 
SEL DIS 0
CONVERT GPT 
CRE PAR EFI SIZE=100 
FORMAT FS=FAT32 QUICK 
ASSIGN LETTER=S 
CRE PAR MSR SIZE=128 
CRE PAR PRI 
FORMAT FS=NTFS QUICK 
ASSIGN LETTER=C 

Load Image and assign boot:
---------------------------
dism /Apply-Image /ImageFile:T:\main.wim /ApplyDir:C:\ /Index:1 /NoRpFix

bcdboot c:\windows /s S: /f UEFI

###

Does Acronis have any product that can solve my problem?

 

 

Thanks

Paresh

0 Users found this helpful

Hello Paresh,

Having read what you are wanting to do, I do not believe that Acronis True Image is necessary to help you do this.

I would suggest using a Windows 10 Install or Recovery DVD to boot from and get to the Command Prompt where you can run all of your commands.  I would presume that you could put these into a Powershell command file or perhaps into a Windows batch file (.CMD or .BAT) but I am not an expert on that so would suggest searching the Microsoft Technet or similar forums to see if others have wanted to automate DISM commands via a command file.

Acronis can offer a Windows PE Rescue environment but as you need a Command prompt window, which it provides, there is no advantage over the Windows DVD until you want to do something that only Acronis can enable you to do.

Thanksf or the reply Steve.  Apologize for duplicate post.

I have tried Winpe solutions from MS which works but I was hoping to find an easier way.   

 

Thanks

Paresh

doorsio, couldn't you just create a .bat script for your commands to automate the process?  It seems like all you'd need to do is create a generic .wim (WinPESE81 is a nice tool, but you really just need something to launch and run the bat script automatically).  All your missing is the "diskpart.exe" command at the very top and then "exit" at the end of first part of the script to take care of the formatting and creation of the partitions.  

On the second part, before your first command, use a change directory command first to the ADK path.  

You could then add this .bat script at the beginning of any winpe in the C:\windows\system32\startnet.cmd file so it launched with the boot of winpe, or put it into the default user startmenu so it runs at login of the WinPE?

Othwerwise, you could run this script from full blown windows and just use an external dock and be sure to change disk 0 to whatever that dock shows up in the bios as.

 

 

On Asus laptop I can get winpe boot to work no problem. I can then automate it and give to my tech.

On Toshiba I am not even able to boot from winpe usb stick.  It gives me BSOD type of error messages.  I was hoping to find 3rd/party tool to boot from and automate the commands to restore.  Looks like I will have to replace drivers one by one in winpe to troubleshoot.  Was hoping to avoid it.

What's the BSOD it's throwing (STOP 0x0000007B INACCESSABLE_BOOT_DEVICE?).  If so, it may just be the SATA mode selected in the bios.  If so, you could just temporarily change it in the bios, run your WinPE, then change it back in the bios again.  Microsoft has a tool to do this for different SATA modes already that you can install if you need this to be a permanent change in your restored image.

https://support.microsoft.com/en-us/kb/922976

Alternatively, you can add the Toshiba drivers into your WinPE as well..., but may not help if it is BSOD becuase of the difference in bios sata mode

https://technet.microsoft.com/en-us/library/hh825070.aspx

Dism /Image:C:\test\offline /Add-Driver /Driver:C:\drivers\mydriver.inf /ForceUnsigned /Recurse

The thing that may be useful with Acronis in this situation is "Universal Restore" that can generalize drivers for any image to make different hardware bootable with the same image.  You'd have to install drivers after running Universal Restore though, but you can add drivers with Universal Restore as well.  

 

 

When BIOS in CSE boot:

 

It just hangs with blue for windows. Works just fine in Asus CSE boot mode but not in Toshiba.

 

When BIOS in UEFI Boot (legacy) give Blue SOD error:

error code 0x0000001

or below in Black SOD

Your PC needs to restart.

Please hold down the pwoer button.

Error Code: 0x0000008E

Paramters:

0xC0000005

0x80EF6804

0x82BA4A04

0x00000000

 

 

 

 

The stop code in UEFI mode suggests that XP may not be compatible with your newer system hardware.. If there are no manufacturer drivers available, you may be out of luck.  Otherwise, you can try running universal restore on the system to see if it will at least boot.  

https://support.microsoft.com/en-us/kb/315335

HOWEVER, I'd assume that your original XP system was installed as bios/legacy/csm in your WIM though anyway and not as UEFI since XP came out before UEFI did?  If so, you need to be booting the toshiba system in bios/legacy/csm mode as well.  In order to do that you would need to configure the bios so that secure boot is off and that csm/legacy mode is enabled as well.  In some bios, you have to specifically pick UEFI or Legacy mode only.  In others, you can have both.  In some systems that allow both, you still need to esnure that the boot order has UEFI/legacy first.  In some bios, UEFI is the only possible method to boot now and CSM/legacy is not allowed or supported.  You may stil have to run Universal Restore on your deployed image to generalize the drivers to allow Windows to boot after that, but if no XP drivers are available from the manufacturer for this new HP sytem, you may still be out of luck for hardware support if drivers are not available.

what is the blue screen you're seeing in legacy mode - a Windows BSOD, or a normal windows blue screen, or a startup repair type of bluescreen?